fixed namespace problems

This commit is contained in:
Matthias Pfefferle 2019-02-24 12:21:25 +01:00
parent 40b2651b7e
commit 5db2e38719
3 changed files with 4 additions and 4 deletions

View file

@ -100,6 +100,6 @@ class Admin {
?>
<h2><?php esc_html_e( 'Fediverse', 'activitypub' ); ?></h2>
<?php
activitypub_get_identifier_settings( $user->ID );
\Activitypub\get_identifier_settings( $user->ID );
}
}

View file

@ -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;

View file

@ -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 );