[ActivityPub] Fix undefined tag index 'type' in Activitypub_notice
This commit is contained in:
parent
bec6fdc66a
commit
073a181778
|
@ -187,7 +187,7 @@ class Activitypub_notice
|
||||||
$mentions = [];
|
$mentions = [];
|
||||||
if (isset($object['tag']) && is_array($object['tag'])) {
|
if (isset($object['tag']) && is_array($object['tag'])) {
|
||||||
foreach ($object['tag'] as $tag) {
|
foreach ($object['tag'] as $tag) {
|
||||||
if ($tag['type'] == 'Mention') {
|
if (array_key_exists('type', $tag) && $tag['type'] == 'Mention') {
|
||||||
$mentions[] = $tag['href'];
|
$mentions[] = $tag['href'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user