From 641d250a061ed9dc42e393c3d11b45b45c746011 Mon Sep 17 00:00:00 2001 From: Django Doucet Date: Sun, 1 Oct 2023 12:20:49 -0600 Subject: [PATCH] remove redundant id check --- includes/rest/class-inbox.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/includes/rest/class-inbox.php b/includes/rest/class-inbox.php index 477cef7..3f8f2ab 100644 --- a/includes/rest/class-inbox.php +++ b/includes/rest/class-inbox.php @@ -352,11 +352,6 @@ class Inbox { $meta = \Activitypub\get_remote_metadata_by_actor( $object['actor'] ); - // Objects must have IDs - if ( ! isset( $object['object']['id'] ) ) { - \error_log( 'Comment provided without ID' ); - return; - } $id = $object['object']['id']; // Only handle replies