We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e490a01 + 7fbfee1 commit 04a95eeCopy full SHA for 04a95ee
includes/class-activitypub.php
@@ -515,7 +515,7 @@ public static function user_register( $user_id ) {
515
* @return array The extra fields.
516
*/
517
public static function default_actor_extra_fields( $extra_fields, $user_id ) {
518
- if ( $extra_fields ) {
+ if ( $extra_fields || ! $user_id ) {
519
return $extra_fields;
520
}
521
includes/model/class-user.php
@@ -235,7 +235,7 @@ public function get_endpoints() {
235
* @return array The extended User-Output.
236
237
public function get_attachment() {
238
- $extra_fields = get_actor_extra_fields( \get_current_user_id() );
+ $extra_fields = get_actor_extra_fields( $this->_id );
239
240
$attachments = array();
241
0 commit comments