From f44298f503c916529c7c7f59623607e83d591951 Mon Sep 17 00:00:00 2001 From: Django Doucet Date: Sun, 1 Oct 2023 12:22:35 -0600 Subject: [PATCH] reinclude user_id in saved ap_object meta --- includes/rest/class-inbox.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/rest/class-inbox.php b/includes/rest/class-inbox.php index 3f8f2ab..fb220bd 100644 --- a/includes/rest/class-inbox.php +++ b/includes/rest/class-inbox.php @@ -339,7 +339,7 @@ class Inbox { * @return array Comment data suitable for creating a comment. */ public static function convert_object_to_comment_data( $object, $user_id ) { - + $object['user_id'] = $user_id; if ( ! isset( $object['object']['inReplyTo'] ) ) { return; } @@ -404,7 +404,7 @@ class Inbox { * @param int $user_id The id of the local blog-user */ public static function handle_create( $object, $user_id ) { - $commentdata = self::convert_object_to_comment_data( $object ); + $commentdata = self::convert_object_to_comment_data( $object, $user_id ); if ( ! $commentdata ) { return false; }