diff options
author | friendica <info@friendica.com> | 2015-01-13 18:41:11 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-01-13 18:41:11 -0800 |
commit | a93f2b1b8fe55033aa68b80c7c6fb2ef1d1fb7ef (patch) | |
tree | 194ef778dcb52c884fd28466f5da994fa81c4a90 | |
parent | dfdef0af0d045bdb0eb6e5ed557579966891e1a0 (diff) | |
download | volse-hubzilla-a93f2b1b8fe55033aa68b80c7c6fb2ef1d1fb7ef.tar.gz volse-hubzilla-a93f2b1b8fe55033aa68b80c7c6fb2ef1d1fb7ef.tar.bz2 volse-hubzilla-a93f2b1b8fe55033aa68b80c7c6fb2ef1d1fb7ef.zip |
now that's useful...
-rw-r--r-- | mod/network.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/mod/network.php b/mod/network.php index 894ea9c10..65332e3f6 100644 --- a/mod/network.php +++ b/mod/network.php @@ -47,7 +47,7 @@ function network_content(&$a, $update = 0, $load = false) { $gid = ((x($_GET,'gid')) ? intval($_GET['gid']) : 0); $category = ((x($_REQUEST,'cat')) ? $_REQUEST['cat'] : ''); $hashtags = ((x($_REQUEST,'tag')) ? $_REQUEST['tag'] : ''); - + $verb = ((x($_REQUEST,'verb')) ? $_REQUEST['verb'] : ''); $search = (($_GET['search']) ? $_GET['search'] : ''); if($search) { @@ -251,7 +251,7 @@ function network_content(&$a, $update = 0, $load = false) { '$tags' => $hashtags, '$dend' => $datequery, '$mid' => '', - '$verb' => '', + '$verb' => $verb, '$dbegin' => $datequery2 )); } @@ -280,6 +280,12 @@ function network_content(&$a, $update = 0, $load = false) { } } + if($verb) { + $sql_extra .= sprintf(" AND item.verb like '%s' ", + dbesc(protect_sprintf('%' . $verb . '%')) + ); + } + if(strlen($file)) { $sql_extra .= term_query('item',$file,TERM_FILE); } |