Ward against empty JsonLD::fetchElement result in ActivityPub\Receiver::processTags
- Address https://github.com/friendica/friendica/issues/12011#issuecomment-1336478368
This commit is contained in:
parent
b1860d4121
commit
607d26e906
|
@ -1472,7 +1472,7 @@ class Receiver
|
|||
continue;
|
||||
}
|
||||
|
||||
$element = ['type' => str_replace('as:', '', JsonLD::fetchElement($tag, '@type')),
|
||||
$element = ['type' => str_replace('as:', '', JsonLD::fetchElement($tag, '@type') ?? ''),
|
||||
'href' => JsonLD::fetchElement($tag, 'as:href', '@id'),
|
||||
'name' => JsonLD::fetchElement($tag, 'as:name', '@value')];
|
||||
|
||||
|
|
Loading…
Reference in a new issue