Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
pfefferle committed Jul 18, 2024
2 parents e490a01 + 7fbfee1 commit 04a95ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/class-activitypub.php
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ public static function user_register( $user_id ) {
* @return array The extra fields.
*/
public static function default_actor_extra_fields( $extra_fields, $user_id ) {
if ( $extra_fields ) {
if ( $extra_fields || ! $user_id ) {
return $extra_fields;
}

Expand Down
2 changes: 1 addition & 1 deletion includes/model/class-user.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ public function get_endpoints() {
* @return array The extended User-Output.
*/
public function get_attachment() {
$extra_fields = get_actor_extra_fields( \get_current_user_id() );
$extra_fields = get_actor_extra_fields( $this->_id );

$attachments = array();

Expand Down

0 comments on commit 04a95ee

Please sign in to comment.