6e7f82bf42
* init * save source id * fix delete and add improve undo * test new functions * add support for threaded comments * some formatting * check if URL is no longer available ...and returns either status 410 or 404. * improve delete handler * improve update handler * `object` and `actor` are already required by the inbox endpoint * fix typo * simplify queries * cosmetics * fix unit tests * schedule delete comments of deleted actor (#575) * schedule delete comments of deleted actor * phpcs --------- Co-authored-by: Django Doucet <django.doucet@webdevstudios.com> * move `get_comments_by_actor` to interactions collection * consistent wording * implement Tombstone * fix follow issue * fix inbox-create * added missing namespace * check if field is set * Fix namespacing issue * update profile and update interaction * fields are already validated by inbox * optimize avatar handling --------- Co-authored-by: Django <mediaformat.ux@gmail.com> Co-authored-by: Django Doucet <django.doucet@webdevstudios.com>
33 lines
582 B
PHP
33 lines
582 B
PHP
<?php
|
|
namespace Activitypub;
|
|
|
|
use Activitypub\Handler\Create;
|
|
use Activitypub\Handler\Delete;
|
|
use Activitypub\Handler\Follow;
|
|
use Activitypub\Handler\Undo;
|
|
use Activitypub\Handler\Update;
|
|
|
|
/**
|
|
* Handler class.
|
|
*/
|
|
class Handler {
|
|
/**
|
|
* Initialize the class, registering WordPress hooks
|
|
*/
|
|
public static function init() {
|
|
self::register_handlers();
|
|
}
|
|
|
|
/**
|
|
* Register handlers.
|
|
*/
|
|
public static function register_handlers() {
|
|
Create::init();
|
|
Delete::init();
|
|
Follow::init();
|
|
Undo::init();
|
|
Update::init();
|
|
|
|
do_action( 'activitypub_register_handlers' );
|
|
}
|
|
}
|