]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #4501 from annando/fix-tag-search
authorHypolite Petovan <mrpetovan@gmail.com>
Mon, 26 Feb 2018 16:13:51 +0000 (11:13 -0500)
committerGitHub <noreply@github.com>
Mon, 26 Feb 2018 16:13:51 +0000 (11:13 -0500)
Fix: Tag searches hadn't been stored as tags

mod/search.php

index 1f93934658f822b0ff31526cbcedb9c8a41df42f..be0f943d07c4a7e830089213a26588e308eacaed 100644 (file)
@@ -146,7 +146,7 @@ function search_content(App $a) {
        $tag = false;
        if (x($_GET,'tag')) {
                $tag = true;
-               $search = ((x($_GET,'tag')) ? notags(trim(rawurldecode($_GET['tag']))) : '');
+               $search = (x($_GET,'tag') ? '#' . notags(trim(rawurldecode($_GET['tag']))) : '');
        }
 
        // contruct a wrapper for the search header