Fix: Undefined array key "object_object_type"
This commit is contained in:
parent
241bd47896
commit
bde7283b04
|
@ -887,13 +887,13 @@ class Receiver
|
||||||
} elseif (($object_data['object_type'] == 'as:Block') &&
|
} elseif (($object_data['object_type'] == 'as:Block') &&
|
||||||
in_array($object_data['object_object_type'], self::ACCOUNT_TYPES)) {
|
in_array($object_data['object_object_type'], self::ACCOUNT_TYPES)) {
|
||||||
ActivityPub\Processor::unblockAccount($object_data);
|
ActivityPub\Processor::unblockAccount($object_data);
|
||||||
} elseif (in_array($object_data['object_type'], array_merge(self::ACTIVITY_TYPES, ['as:Announce'])) &&
|
|
||||||
in_array($object_data['object_object_type'], array_merge(['as:Tombstone'], self::CONTENT_TYPES))) {
|
|
||||||
ActivityPub\Processor::undoActivity($object_data);
|
|
||||||
} elseif (in_array($object_data['object_type'], array_merge(self::ACTIVITY_TYPES, ['as:Announce', 'as:Create', ''])) &&
|
} elseif (in_array($object_data['object_type'], array_merge(self::ACTIVITY_TYPES, ['as:Announce', 'as:Create', ''])) &&
|
||||||
empty($object_data['object_object_type'])) {
|
empty($object_data['object_object_type'])) {
|
||||||
// We cannot detect the target object. So we can ignore it.
|
// We cannot detect the target object. So we can ignore it.
|
||||||
Queue::remove($object_data);
|
Queue::remove($object_data);
|
||||||
|
} elseif (in_array($object_data['object_type'], array_merge(self::ACTIVITY_TYPES, ['as:Announce'])) &&
|
||||||
|
in_array($object_data['object_object_type'], array_merge(['as:Tombstone'], self::CONTENT_TYPES))) {
|
||||||
|
ActivityPub\Processor::undoActivity($object_data);
|
||||||
} elseif (in_array($object_data['object_type'], ['as:Create']) &&
|
} elseif (in_array($object_data['object_type'], ['as:Create']) &&
|
||||||
in_array($object_data['object_object_type'], ['pt:CacheFile'])) {
|
in_array($object_data['object_object_type'], ['pt:CacheFile'])) {
|
||||||
// Unhandled Peertube activity
|
// Unhandled Peertube activity
|
||||||
|
|
Loading…
Reference in New Issue
Block a user