[PLUGINS][Favourite][RepeatNote][DeleteNote][WebMonetization] Make use of 'activitypub_handler' more readable

This commit is contained in:
2022-03-10 00:40:54 +00:00
parent 9a9eed1457
commit 0ce5eba355
4 changed files with 26 additions and 24 deletions

View File

@@ -200,6 +200,7 @@ class DeleteNote extends NoteHandlerPlugin
{
if ($type_activity->get('type') !== 'Delete'
|| !($type_object instanceof Note)) {
// Don't care about AbstractObject because we only want to delete objects we already have
return Event::next;
}