diff options
author | Mario <mario@mariovavti.com> | 2024-03-05 09:45:49 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-03-05 09:45:49 +0000 |
commit | d23ed6b11fd44be6d5764f792f3ae01882405149 (patch) | |
tree | b737b2e2e0f6937e957ac05c070af7c549e53825 /Zotlabs/Module/Thing.php | |
parent | 1e2a4a57b67d0f69f234e11f9cb30aa532b75896 (diff) | |
download | volse-hubzilla-d23ed6b11fd44be6d5764f792f3ae01882405149.tar.gz volse-hubzilla-d23ed6b11fd44be6d5764f792f3ae01882405149.tar.bz2 volse-hubzilla-d23ed6b11fd44be6d5764f792f3ae01882405149.zip |
improve things display a little
Diffstat (limited to 'Zotlabs/Module/Thing.php')
-rw-r--r-- | Zotlabs/Module/Thing.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Zotlabs/Module/Thing.php b/Zotlabs/Module/Thing.php index d51310b3a..8a1591442 100644 --- a/Zotlabs/Module/Thing.php +++ b/Zotlabs/Module/Thing.php @@ -5,6 +5,7 @@ namespace Zotlabs\Module; +use App; use Zotlabs\Lib\Libsync; use Zotlabs\Lib\Activity; use Zotlabs\Lib\ActivityStreams; @@ -218,10 +219,11 @@ class Thing extends \Zotlabs\Web\Controller { $ulink = '[zrl=' . $channel['xchan_url'] . ']' . $channel['channel_name'] . '[/zrl]'; $plink = '[zrl=' . $url . ']' . $name . '[/zrl]'; - $arr['body'] = sprintf($bodyverb, $ulink, $translated_verb, $plink); + $arr['title'] = $channel['channel_name'] . ' ' . $translated_verb . ' ' . $name; + $arr['body'] = $url; if($local_photo) - $arr['body'] .= "\n\n" . '[zmg]' . $local_photo . '[/zmg]'; + $arr['body'] = '[zrl=' . $url . '][zmg=' . $local_photo . ']' . $name . '[/zmg][/zrl]'; $arr['verb'] = 'Create'; $arr['obj_type'] = 'Page'; @@ -275,12 +277,12 @@ class Thing extends \Zotlabs\Web\Controller { dbesc(argv(1)) ); - if($r) { + if ($r) { $channel = channelx_by_n($r[0]['obj_channel']); profile_load($channel['channel_address']); return replace_macros(get_markup_template('show_thing.tpl'), array( - '$header' => $channel['xchan_name'] . ' ' . $r[0]['obj_verb'], + '$header' => $channel['xchan_name'] . ' ' . $r[0]['obj_verb'] . ' ' . $r[0]['obj_term'], '$edit' => t('Edit'), '$delete' => t('Delete'), '$canedit' => ((local_channel() && local_channel() == $r[0]['obj_channel']) ? true : false), |