From f28103d595c0e02dfd30d44b3115915994e9ecc0 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 15 Dec 2014 14:37:31 -0800 Subject: wall tags --- mod/channel.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mod/channel.php') diff --git a/mod/channel.php b/mod/channel.php index 54b25ad8b..f85f904aa 100644 --- a/mod/channel.php +++ b/mod/channel.php @@ -57,6 +57,7 @@ function channel_content(&$a, $update = 0, $load = false) { } $category = ((x($_REQUEST,'cat')) ? $_REQUEST['cat'] : ''); + $hashtags = ((x($_REQUEST,'tag')) ? $_REQUEST['tag'] : ''); $groups = array(); @@ -174,6 +175,9 @@ function channel_content(&$a, $update = 0, $load = false) { if(x($category)) { $sql_extra .= protect_sprintf(term_query('item', $category, TERM_CATEGORY)); } + if(x($hashtags)) { + $sql_extra .= protect_sprintf(term_query('item', $hashtags, TERM_HASHTAG)); + } if($datequery) { $sql_extra2 .= protect_sprintf(sprintf(" AND item.created <= '%s' ", dbesc(datetime_convert(date_default_timezone_get(),'',$datequery)))); @@ -281,6 +285,7 @@ function channel_content(&$a, $update = 0, $load = false) { '$list' => ((x($_REQUEST,'list')) ? intval($_REQUEST['list']) : 0), '$file' => '', '$cats' => (($category) ? $category : ''), + '$tags' => (($hashtags) ? $hashtags : ''), '$mid' => $mid, '$dend' => $datequery, '$dbegin' => $datequery2 -- cgit v1.2.3