Commit 41211a14 authored by Andreas Grupp's avatar Andreas Grupp Committed by Yassine Doghri
Browse files

fix(fediverse): access to URI in 'object' instead of going down with '->id' in delete case

parent 07e3a9c8
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -135,7 +135,7 @@ class ActorController extends Controller
                    ->setJSON([]);
            case 'Delete':
                $postToDelete = model('PostModel', false)
                    ->getPostByUri($payload->object->id);
                    ->getPostByUri($payload->object);

                if ($postToDelete instanceof Post) {
                    model('PostModel', false)