Skip empty name tags in ActivityPub\Processor::acceptIncomingMessage
- Address part of https://github.com/friendica/friendica/issues/12011#issuecomment-1826792949
This commit is contained in:
parent
332ab6641c
commit
838c73cbba
1 changed files with 4 additions and 4 deletions
|
@ -1725,7 +1725,7 @@ class Processor
|
|||
$tags = Receiver::processTags(JsonLD::fetchElementArray($activity['as:object'], 'as:tag') ?? []);
|
||||
if (!empty($tags)) {
|
||||
foreach ($tags as $tag) {
|
||||
if (($tag['type'] != 'Hashtag') && !strpos($tag['type'], ':Hashtag')) {
|
||||
if (($tag['type'] != 'Hashtag') && !strpos($tag['type'], ':Hashtag') || empty($tag['name'])) {
|
||||
continue;
|
||||
}
|
||||
$messageTags[] = ltrim(mb_strtolower($tag['name']), '#');
|
||||
|
|
Loading…
Reference in a new issue