]> git.mxchange.org Git - friendica.git/commitdiff
Fix: Mentions had been stored as tags
authorMichael <heluecht@pirati.ca>
Wed, 29 Apr 2020 10:49:13 +0000 (10:49 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 29 Apr 2020 10:49:13 +0000 (10:49 +0000)
src/Model/Tag.php

index 829567fe5f9096f221ce81544d42bbbe0471d6b1..7e894aca9b9a19fcfdddc632ca617432bf703d9a 100644 (file)
@@ -68,7 +68,7 @@ class Tag
         */
        public static function store(int $uriid, int $type, string $name, string $url = '', $probing = true)
        {
-               if ($type = self::HASHTAG) {
+               if ($type == self::HASHTAG) {
                        // Remove some common "garbarge" from tags
                        $name = trim($name, "\x00..\x20\xFF#!@,;.:'/?!^°$%".'"');