aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-12-01 15:52:57 +0100
committerMax Kostikov <max@kostikov.co>2019-12-01 15:52:57 +0100
commit5ccbcb44f7e4e2bbd3343ba48f417c98d0933f67 (patch)
tree2a5b5d297d8a190963729f6324c85e41732a1036 /Zotlabs/Module
parentadcf28af7c1088725b6d9665b8d949cf004eaac7 (diff)
downloadvolse-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.php7
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');