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/Lib/Activity.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/Lib/Activity.php')
-rw-r--r-- | Zotlabs/Lib/Activity.php | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index fb92e6398..0275c87ac 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -207,23 +207,19 @@ class Activity { $channel = channelx_by_n($r[0]['obj_channel']); - $content = '[zrl=' . $channel['xchan_url'] . ']' . $channel['channel_name'] . '[/zrl] '; - $content .= $r[0]['obj_verb'] . ' '; - $content .= '[zrl=' . $r[0]['obj_url'] . ']' . $r[0]['obj_term'] . '[/zrl]'; - $x = [ 'type' => 'Page', 'id' => z_root() . '/thing/' . $r[0]['obj_obj'], - 'name' => $r[0]['obj_term'], - 'content' => bbcode($content), + 'name' => $channel['channel_name'] . ' ' . $r[0]['obj_verb'] . ' ' . $r[0]['obj_term'], + 'content' => $r[0]['obj_url'], 'url' => $r[0]['obj_url'] ]; - if ($r[0]['obj_image']) { + if ($r[0]['obj_imgurl']) { + $x['content'] = '<a href="' . $r[0]['obj_url'] . '"><img src="' . $r[0]['obj_imgurl'] . '" alt="' . $r[0]['obj_term'] . '"></a>'; $x['icon'] = [ 'type' => 'Image', - 'url' => $r[0]['obj_image'] - + 'url' => $r[0]['obj_imgurl'] ]; } |