reinclude user_id in saved ap_object meta

This commit is contained in:
Django Doucet 2023-10-01 12:22:35 -06:00
parent 641d250a06
commit f44298f503

View file

@ -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;
}