]> git.mxchange.org Git - friendica.git/blobdiff - include/items.php
Merge pull request #8345 from annando/store-raw
[friendica.git] / include / items.php
index f4bab4b8fc9f4edc206071976a750f969d78c8f2..4c7551e5c49f0a565a4b7b75dfde9339472b1d2a 100644 (file)
@@ -103,8 +103,7 @@ function add_page_info_data(array $data, $no_photos = false)
                $hashtags = "\n";
                foreach ($data["keywords"] as $keyword) {
                        /// @TODO make a positive list of allowed characters
-                       $hashtag = str_replace([" ", "+", "/", ".", "#", "'", "’", "`", "(", ")", "„", "“"],
-                                               ["", "", "", "", "", "", "", "", "", "", "", ""], $keyword);
+                       $hashtag = str_replace([' ', '+', '/', '.', '#', '@', "'", '"', '’', '`', '(', ')', '„', '“'], '', $keyword);
                        $hashtags .= "#[url=" . DI::baseUrl() . "/search?tag=" . $hashtag . "]" . $hashtag . "[/url] ";
                }
        }