Fix: Mentions had been stored as tags

This commit is contained in:
Michael 2020-04-29 10:49:13 +00:00
parent 2423831b90
commit 136c6b644e

View 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#!@,;.:'/?!^°$%".'"');