Skip to content

Commit 6de740a

Browse files
committed
renamed class
1 parent a8c1220 commit 6de740a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

activitypub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: ActivityPub
44
* Plugin URI: https://github.com/pfefferle/wordpress-activitypub/
55
* Description: The ActivityPub protocol is a decentralized social networking protocol based upon the ActivityStreams 2.0 data format.
6-
* Version: 0.0.2
6+
* Version: 0.1.0
77
* Author: Matthias Pfefferle
88
* Author URI: https://notiz.blog/
99
* License: MIT
@@ -18,7 +18,7 @@
1818
function activitypub_init() {
1919
require_once dirname( __FILE__ ) . '/includes/class-activitypub-signature.php';
2020
require_once dirname( __FILE__ ) . '/includes/class-activitypub-post.php';
21-
require_once dirname( __FILE__ ) . '/includes/class-db-activitypub-actor.php';
21+
require_once dirname( __FILE__ ) . '/includes/class-db-activitypub-followers.php';
2222
require_once dirname( __FILE__ ) . '/includes/functions.php';
2323

2424
require_once dirname( __FILE__ ) . '/includes/class-activitypub.php';

includes/class-activitypub-activities.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public static function accept( $data, $author_id ) {
1313
return new WP_Error( 'activitypub_no_actor', __( 'No "Actor" found', 'activitypub' ), $metadata );
1414
}
1515

16-
$inbox = Db_Activitypub_Actor::get_inbox_by_actor( $data['actor'] );
16+
$inbox = Db_Activitypub_Followers::get_inbox_by_actor( $data['actor'] );
1717

1818
$activity = wp_json_encode(
1919
array(
@@ -39,7 +39,7 @@ public static function follow( $data, $author_id ) {
3939
return new WP_Error( 'activitypub_no_actor', __( 'No "Actor" found', 'activitypub' ), $metadata );
4040
}
4141

42-
Db_Activitypub_Actor::add_follower( $data['actor'], $author_id );
42+
Db_Activitypub_Followers::add_follower( $data['actor'], $author_id );
4343
}
4444

4545
/**

includes/class-db-activitypub-actor.php renamed to includes/class-db-activitypub-followers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
class Db_Activitypub_Actor {
3+
class Db_Activitypub_Followers {
44
/**
55
* [get_inbox_by_actor description]
66
* @param [type] $actor [description]

0 commit comments

Comments
 (0)