Rename to Application class

This commit is contained in:
Django Doucet 2023-11-13 11:50:20 -07:00
parent 87d32cb212
commit 06a023e7de
2 changed files with 4 additions and 4 deletions

View file

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

View file

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