diff options
author | Max Kostikov <max@kostikov.co> | 2019-12-01 15:52:57 +0100 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2019-12-01 15:52:57 +0100 |
commit | 5ccbcb44f7e4e2bbd3343ba48f417c98d0933f67 (patch) | |
tree | 2a5b5d297d8a190963729f6324c85e41732a1036 /Zotlabs/Module | |
parent | adcf28af7c1088725b6d9665b8d949cf004eaac7 (diff) | |
download | volse-hubzilla-5ccbcb44f7e4e2bbd3343ba48f417c98d0933f67.tar.gz volse-hubzilla-5ccbcb44f7e4e2bbd3343ba48f417c98d0933f67.tar.bz2 volse-hubzilla-5ccbcb44f7e4e2bbd3343ba48f417c98d0933f67.zip |
Add pinned content on channel page
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Channel.php | 7 |
1 files changed, 7 insertions, 0 deletions
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'); |