renamed class

This commit is contained in:
Matthias Pfefferle 2018-12-09 22:20:30 +01:00
parent a8c1220139
commit 6de740aebe
3 changed files with 5 additions and 5 deletions

View file

@ -3,7 +3,7 @@
* Plugin Name: ActivityPub * Plugin Name: ActivityPub
* Plugin URI: https://github.com/pfefferle/wordpress-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. * 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: Matthias Pfefferle
* Author URI: https://notiz.blog/ * Author URI: https://notiz.blog/
* License: MIT * License: MIT
@ -18,7 +18,7 @@
function activitypub_init() { function activitypub_init() {
require_once dirname( __FILE__ ) . '/includes/class-activitypub-signature.php'; require_once dirname( __FILE__ ) . '/includes/class-activitypub-signature.php';
require_once dirname( __FILE__ ) . '/includes/class-activitypub-post.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/functions.php';
require_once dirname( __FILE__ ) . '/includes/class-activitypub.php'; require_once dirname( __FILE__ ) . '/includes/class-activitypub.php';

View file

@ -13,7 +13,7 @@ class Activitypub_Activities {
return new WP_Error( 'activitypub_no_actor', __( 'No "Actor" found', 'activitypub' ), $metadata ); 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( $activity = wp_json_encode(
array( array(
@ -39,7 +39,7 @@ class Activitypub_Activities {
return new WP_Error( 'activitypub_no_actor', __( 'No "Actor" found', 'activitypub' ), $metadata ); 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 );
} }
/** /**

View file

@ -1,6 +1,6 @@
<?php <?php
class Db_Activitypub_Actor { class Db_Activitypub_Followers {
/** /**
* [get_inbox_by_actor description] * [get_inbox_by_actor description]
* @param [type] $actor [description] * @param [type] $actor [description]