Procházet zdrojové kódy

Update Inbox, fix tombstone bug

Daniel Supernault před 4 roky
rodič
revize
929ff5eb01
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3 3
      app/Util/ActivityPub/Inbox.php

+ 3 - 3
app/Util/ActivityPub/Inbox.php

@@ -500,13 +500,13 @@ class Inbox
 							->orWhere('url', $id)
 							->orWhere('object_url', $id)
 							->first();
+						if(!$status) {
+							return;
+						}
 						Notification::whereActorId($profile->id)
 							->whereItemType('App\Status')
 							->whereItemId($status->id)
 							->forceDelete();
-						if(!$status) {
-							return;
-						}
 						$status->directMessage()->delete();
 						$status->media()->delete();
 						$status->likes()->delete();