renamed class
This commit is contained in:
parent
a8c1220139
commit
6de740aebe
3 changed files with 5 additions and 5 deletions
|
@ -3,7 +3,7 @@
|
|||
* Plugin Name: ActivityPub
|
||||
* Plugin URI: https://github.com/pfefferle/wordpress-activitypub/
|
||||
* Description: The ActivityPub protocol is a decentralized social networking protocol based upon the ActivityStreams 2.0 data format.
|
||||
* Version: 0.0.2
|
||||
* Version: 0.1.0
|
||||
* Author: Matthias Pfefferle
|
||||
* Author URI: https://notiz.blog/
|
||||
* License: MIT
|
||||
|
@ -18,7 +18,7 @@
|
|||
function activitypub_init() {
|
||||
require_once dirname( __FILE__ ) . '/includes/class-activitypub-signature.php';
|
||||
require_once dirname( __FILE__ ) . '/includes/class-activitypub-post.php';
|
||||
require_once dirname( __FILE__ ) . '/includes/class-db-activitypub-actor.php';
|
||||
require_once dirname( __FILE__ ) . '/includes/class-db-activitypub-followers.php';
|
||||
require_once dirname( __FILE__ ) . '/includes/functions.php';
|
||||
|
||||
require_once dirname( __FILE__ ) . '/includes/class-activitypub.php';
|
||||
|
|
|
@ -13,7 +13,7 @@ class Activitypub_Activities {
|
|||
return new WP_Error( 'activitypub_no_actor', __( 'No "Actor" found', 'activitypub' ), $metadata );
|
||||
}
|
||||
|
||||
$inbox = Db_Activitypub_Actor::get_inbox_by_actor( $data['actor'] );
|
||||
$inbox = Db_Activitypub_Followers::get_inbox_by_actor( $data['actor'] );
|
||||
|
||||
$activity = wp_json_encode(
|
||||
array(
|
||||
|
@ -39,7 +39,7 @@ class Activitypub_Activities {
|
|||
return new WP_Error( 'activitypub_no_actor', __( 'No "Actor" found', 'activitypub' ), $metadata );
|
||||
}
|
||||
|
||||
Db_Activitypub_Actor::add_follower( $data['actor'], $author_id );
|
||||
Db_Activitypub_Followers::add_follower( $data['actor'], $author_id );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
class Db_Activitypub_Actor {
|
||||
class Db_Activitypub_Followers {
|
||||
/**
|
||||
* [get_inbox_by_actor description]
|
||||
* @param [type] $actor [description]
|
Loading…
Reference in a new issue