mirror of
https://github.com/friendica/friendica
synced 2025-04-26 09:10:15 +00:00
Remove unused code
- Remove commented code - Remove unused/immediately overwritten variables - Remove extraneous parameters - Remove unreachable code - Remove duplicate array keys
This commit is contained in:
parent
0c4f8277e6
commit
4a95ca280d
42 changed files with 43 additions and 218 deletions
|
@ -379,15 +379,15 @@ class Receiver
|
|||
if (in_array($object_data['object_type'], self::CONTENT_TYPES)) {
|
||||
ActivityPub\Processor::updateItem($object_data);
|
||||
} elseif (in_array($object_data['object_type'], self::ACCOUNT_TYPES)) {
|
||||
ActivityPub\Processor::updatePerson($object_data, $body);
|
||||
ActivityPub\Processor::updatePerson($object_data);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'as:Delete':
|
||||
if ($object_data['object_type'] == 'as:Tombstone') {
|
||||
ActivityPub\Processor::deleteItem($object_data, $body);
|
||||
ActivityPub\Processor::deleteItem($object_data);
|
||||
} elseif (in_array($object_data['object_type'], self::ACCOUNT_TYPES)) {
|
||||
ActivityPub\Processor::deletePerson($object_data, $body);
|
||||
ActivityPub\Processor::deletePerson($object_data);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue