mirror of
https://github.com/friendica/friendica
synced 2024-11-10 03:42:53 +00:00
Prevent the warning of an Undefined array key "object_object_type"
This commit is contained in:
parent
1db3143dc5
commit
39a1745361
1 changed files with 1 additions and 1 deletions
|
@ -733,7 +733,7 @@ class Receiver
|
|||
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', ''])) &&
|
||||
($object_data['object_object_type'] == '')) {
|
||||
empty($object_data['object_object_type'])) {
|
||||
// We cannot detect the target object. So we can ignore it.
|
||||
} elseif (in_array($object_data['object_type'], ['as:Create']) &&
|
||||
in_array($object_data['object_object_type'], ['pt:CacheFile'])) {
|
||||
|
|
Loading…
Reference in a new issue