From 5db2e387193807cb0ef8ee9d98a2f65ca2cfdd3f Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Sun, 24 Feb 2019 12:21:25 +0100 Subject: [PATCH] fixed namespace problems --- includes/class-admin.php | 2 +- includes/functions.php | 4 ++-- includes/rest/class-followers.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/class-admin.php b/includes/class-admin.php index 9cacdd7..8c39061 100644 --- a/includes/class-admin.php +++ b/includes/class-admin.php @@ -100,6 +100,6 @@ class Admin { ?>

ID ); + \Activitypub\get_identifier_settings( $user->ID ); } } diff --git a/includes/functions.php b/includes/functions.php index a6aef96..c6e362d 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -134,7 +134,7 @@ function get_remote_metadata_by_actor( $actor ) { * @return [type] [description] */ function get_inbox_by_actor( $actor ) { - $metadata = get_remote_metadata_by_actor( $actor ); + $metadata = \Activitypub\get_remote_metadata_by_actor( $actor ); if ( is_wp_error( $metadata ) ) { return $metadata; @@ -157,7 +157,7 @@ function get_inbox_by_actor( $actor ) { * @return [type] [description] */ function get_publickey_by_actor( $actor, $key_id ) { - $metadata = get_remote_metadata_by_actor( $actor ); + $metadata = \Activitypub\get_remote_metadata_by_actor( $actor ); if ( is_wp_error( $metadata ) ) { return $metadata; diff --git a/includes/rest/class-followers.php b/includes/rest/class-followers.php index 4f673e9..b7fdb97 100644 --- a/includes/rest/class-followers.php +++ b/includes/rest/class-followers.php @@ -43,7 +43,7 @@ class Followers { $json = new \stdClass(); - $json->{'@context'} = get_activitypub_context(); + $json->{'@context'} = \Activitypub\get_context(); $followers = \Activitypub\Db\Followers::get_followers( $user_id );