From 5ccbcb44f7e4e2bbd3343ba48f417c98d0933f67 Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Sun, 1 Dec 2019 15:52:57 +0100 Subject: Add pinned content on channel page --- Zotlabs/Module/Channel.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Zotlabs/Module/Channel.php b/Zotlabs/Module/Channel.php index d975ac1bf..20a5418c2 100644 --- a/Zotlabs/Module/Channel.php +++ b/Zotlabs/Module/Channel.php @@ -468,6 +468,13 @@ class Channel extends Controller { ); } } + + // Add pinned content + if(! $decoded && ! $search) { + $pinned = new \Zotlabs\Widget\Pinned; + $r = $pinned->widget(intval(App::$profile['profile_uid']), [ITEM_TYPE_POST]); + $o .= $r['html']; + } $mode = (($search) ? 'search' : 'channel'); -- cgit v1.2.3