Skip to content

Commit 04a95ee

Browse files
committed
2 parents e490a01 + 7fbfee1 commit 04a95ee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

includes/class-activitypub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ public static function user_register( $user_id ) {
515515
* @return array The extra fields.
516516
*/
517517
public static function default_actor_extra_fields( $extra_fields, $user_id ) {
518-
if ( $extra_fields ) {
518+
if ( $extra_fields || ! $user_id ) {
519519
return $extra_fields;
520520
}
521521

includes/model/class-user.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public function get_endpoints() {
235235
* @return array The extended User-Output.
236236
*/
237237
public function get_attachment() {
238-
$extra_fields = get_actor_extra_fields( \get_current_user_id() );
238+
$extra_fields = get_actor_extra_fields( $this->_id );
239239

240240
$attachments = array();
241241

0 commit comments

Comments
 (0)