updated plugin ActivityPub version 8.3.0
This commit is contained in:
@ -7,15 +7,6 @@
|
||||
|
||||
namespace Activitypub;
|
||||
|
||||
use Activitypub\Handler\Announce;
|
||||
use Activitypub\Handler\Create;
|
||||
use Activitypub\Handler\Delete;
|
||||
use Activitypub\Handler\Follow;
|
||||
use Activitypub\Handler\Like;
|
||||
use Activitypub\Handler\Move;
|
||||
use Activitypub\Handler\Undo;
|
||||
use Activitypub\Handler\Update;
|
||||
|
||||
/**
|
||||
* Handler class.
|
||||
*/
|
||||
@ -25,20 +16,25 @@ class Handler {
|
||||
*/
|
||||
public static function init() {
|
||||
self::register_handlers();
|
||||
self::register_outbox_handlers();
|
||||
}
|
||||
|
||||
/**
|
||||
* Register handlers.
|
||||
*/
|
||||
public static function register_handlers() {
|
||||
Announce::init();
|
||||
Create::init();
|
||||
Delete::init();
|
||||
Follow::init();
|
||||
Undo::init();
|
||||
Update::init();
|
||||
Like::init();
|
||||
Move::init();
|
||||
Handler\Accept::init();
|
||||
Handler\Announce::init();
|
||||
Handler\Collection_Sync::init();
|
||||
Handler\Create::init();
|
||||
Handler\Delete::init();
|
||||
Handler\Follow::init();
|
||||
Handler\Like::init();
|
||||
Handler\Move::init();
|
||||
Handler\Quote_Request::init();
|
||||
Handler\Reject::init();
|
||||
Handler\Undo::init();
|
||||
Handler\Update::init();
|
||||
|
||||
/**
|
||||
* Register additional handlers.
|
||||
@ -47,4 +43,28 @@ class Handler {
|
||||
*/
|
||||
do_action( 'activitypub_register_handlers' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Register outbox handlers.
|
||||
*/
|
||||
public static function register_outbox_handlers() {
|
||||
Handler\Outbox\Add::init();
|
||||
Handler\Outbox\Announce::init();
|
||||
Handler\Outbox\Arrive::init();
|
||||
Handler\Outbox\Block::init();
|
||||
Handler\Outbox\Create::init();
|
||||
Handler\Outbox\Delete::init();
|
||||
Handler\Outbox\Follow::init();
|
||||
Handler\Outbox\Like::init();
|
||||
Handler\Outbox\Remove::init();
|
||||
Handler\Outbox\Undo::init();
|
||||
Handler\Outbox\Update::init();
|
||||
|
||||
/**
|
||||
* Register additional outbox handlers.
|
||||
*
|
||||
* @since 8.1.0
|
||||
*/
|
||||
do_action( 'activitypub_register_outbox_handlers' );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user