PluginProbe
ActivityPub / 3.2.2
ActivityPub v3.2.2
9.3.1 9.3.0 9.2.2 9.2.1 9.2.0 9.1.0 9.0.2 9.0.1 9.0.0 8.3.0 8.2.1 8.2.0 8.1.1 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.2.0 1.3.0 2.0.0 2.0.1 2.1.0 2.1.1 All 160 releases
← All changes | includes/class-handler.php +7 -0 2.0.13.2.2 View file →
@@ -1,10 +1,12 @@
1 1 <?php
2 2 namespace Activitypub;
3 3
4 +use Activitypub\Handler\Announce;
4 5 use Activitypub\Handler\Create;
5 6 use Activitypub\Handler\Delete;
6 7 use Activitypub\Handler\Follow;
8 +use Activitypub\Handler\Like;
7 9 use Activitypub\Handler\Undo;
8 10 use Activitypub\Handler\Update;
9 11
10 12 /**
@@ -21,13 +23,18 @@
21 23 /**
22 24 * Register handlers.
23 25 */
24 26 public static function register_handlers() {
27 + Announce::init();
25 28 Create::init();
26 29 Delete::init();
27 30 Follow::init();
28 31 Undo::init();
29 32 Update::init();
33 +
34 + if ( ! ACTIVITYPUB_DISABLE_REACTIONS ) {
35 + Like::init();
36 + }
30 37
31 38 do_action( 'activitypub_register_handlers' );
32 39 }
33 40 }