Fix: Mentions had been stored as tags
This commit is contained in:
parent
2423831b90
commit
136c6b644e
|
@ -68,7 +68,7 @@ class Tag
|
||||||
*/
|
*/
|
||||||
public static function store(int $uriid, int $type, string $name, string $url = '', $probing = true)
|
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
|
// Remove some common "garbarge" from tags
|
||||||
$name = trim($name, "\x00..\x20\xFF#!@,;.:'/?!^°$%".'"');
|
$name = trim($name, "\x00..\x20\xFF#!@,;.:'/?!^°$%".'"');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue