diff options
author | Mario <mario@mariovavti.com> | 2019-12-28 14:37:52 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2019-12-28 14:37:52 +0000 |
commit | ff63132a32ed7bcfe52e51847dbd7efec64a3f43 (patch) | |
tree | 290afab0bfc1fc08acec593d297b12161bd6030e /Zotlabs/Module | |
parent | db22578c1631dfefebbc128815497c2449f583cc (diff) | |
download | volse-hubzilla-ff63132a32ed7bcfe52e51847dbd7efec64a3f43.tar.gz volse-hubzilla-ff63132a32ed7bcfe52e51847dbd7efec64a3f43.tar.bz2 volse-hubzilla-ff63132a32ed7bcfe52e51847dbd7efec64a3f43.zip |
pubstream: use search mode for tag filter view and add a title
Diffstat (limited to 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Pubstream.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Zotlabs/Module/Pubstream.php b/Zotlabs/Module/Pubstream.php index 84ac42f72..282c10989 100644 --- a/Zotlabs/Module/Pubstream.php +++ b/Zotlabs/Module/Pubstream.php @@ -62,6 +62,11 @@ class Pubstream extends \Zotlabs\Web\Controller { $static = ((array_key_exists('static',$_REQUEST)) ? intval($_REQUEST['static']) : 0); $net = ((array_key_exists('net',$_REQUEST)) ? escape_tags($_REQUEST['net']) : ''); + $title = replace_macros(get_markup_template("section_title.tpl"),array( + '$title' => (($hashtags) ? '#' . htmlspecialchars($hashtags, ENT_COMPAT,'UTF-8') : '') + )); + + $o = (($hashtags) ? $title : ''); if(local_channel() && (! $update)) { @@ -94,7 +99,7 @@ class Pubstream extends \Zotlabs\Web\Controller { 'reset' => t('Reset form') ); - $o = '<div id="jot-popup">'; + $o .= '<div id="jot-popup">'; $o .= status_editor($a,$x,false,'Pubstream'); $o .= '</div>'; } @@ -285,7 +290,7 @@ class Pubstream extends \Zotlabs\Web\Controller { } // fake it - $mode = ('pubstream'); + $mode = (($hashtags) ? 'search' : 'pubstream'); $o .= conversation($items,$mode,$update,$page_mode); |