reinclude user_id in saved ap_object meta
This commit is contained in:
parent
641d250a06
commit
f44298f503
1 changed files with 2 additions and 2 deletions
|
@ -339,7 +339,7 @@ class Inbox {
|
||||||
* @return array Comment data suitable for creating a comment.
|
* @return array Comment data suitable for creating a comment.
|
||||||
*/
|
*/
|
||||||
public static function convert_object_to_comment_data( $object, $user_id ) {
|
public static function convert_object_to_comment_data( $object, $user_id ) {
|
||||||
|
$object['user_id'] = $user_id;
|
||||||
if ( ! isset( $object['object']['inReplyTo'] ) ) {
|
if ( ! isset( $object['object']['inReplyTo'] ) ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -404,7 +404,7 @@ class Inbox {
|
||||||
* @param int $user_id The id of the local blog-user
|
* @param int $user_id The id of the local blog-user
|
||||||
*/
|
*/
|
||||||
public static function handle_create( $object, $user_id ) {
|
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 ) {
|
if ( ! $commentdata ) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue