From 06a023e7deb09ea35898cc4bc3625b571625df9d Mon Sep 17 00:00:00 2001 From: Django Doucet Date: Mon, 13 Nov 2023 11:50:20 -0700 Subject: [PATCH] Rename to Application class --- includes/class-activity-dispatcher.php | 4 ++-- includes/{class-server.php => class-application.php} | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename includes/{class-server.php => class-application.php} (93%) diff --git a/includes/class-activity-dispatcher.php b/includes/class-activity-dispatcher.php index 5ca80b0..cd971fc 100644 --- a/includes/class-activity-dispatcher.php +++ b/includes/class-activity-dispatcher.php @@ -6,7 +6,7 @@ use Activitypub\Activity\Activity; use Activitypub\Collection\Users; use Activitypub\Collection\Followers; use Activitypub\Transformer\Post; -use Activitypub\Server; +use Activitypub\Application; use function Activitypub\is_single_user; use function Activitypub\is_user_disabled; @@ -172,7 +172,7 @@ class Activity_Dispatcher { */ public static function send_server_activity( $activity, $user_id = Users::APPLICATION_USER_ID ) { $json = $activity->to_json(); - $inboxes = Server::known_inboxes(); + $inboxes = Application::known_inboxes(); foreach ( $inboxes as $inbox ) { safe_remote_post( $inbox, $json, $user_id ); } diff --git a/includes/class-server.php b/includes/class-application.php similarity index 93% rename from includes/class-server.php rename to includes/class-application.php index c82dd42..1e6b2b8 100644 --- a/includes/class-server.php +++ b/includes/class-application.php @@ -8,11 +8,11 @@ use Activitypub\Collection\Users; use function Activitypub\is_user_disabled; /** - * ActivityPub Server Class + * ActivityPub Application Class * * @author Django Doucet */ -class Server { +class Application { public static function known_inboxes() { $authors = get_users(