File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,9 @@ public static function getHashtags($fullText): array
125
125
126
126
preg_match_all ($ htRe , $ fullText , $ matches );
127
127
128
- return $ matches [2 ] ?? [];
128
+ return array_filter ($ matches [2 ] ?? [], function ($ tag ) {
129
+ return is_string ($ tag );
130
+ });
129
131
}
130
132
131
133
/**
Original file line number Diff line number Diff line change @@ -1545,7 +1545,7 @@ public function getTags()
1545
1545
{
1546
1546
// There is a bug on mobile that is sending the hashtags with the hash, this shouldnt happen
1547
1547
$ this ->tags = array_map (function ($ tag ) {
1548
- return str_replace ('# ' , '' , $ tag );
1548
+ return ( string ) str_replace ('# ' , '' , $ tag );
1549
1549
}, $ this ->tags ?: []);
1550
1550
return $ this ->tags ?: [];
1551
1551
}
You can’t perform that action at this time.
0 commit comments