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/handler/class-follow.php +10 -0 2.1.13.2.2 View file →
@@ -1,8 +1,9 @@
1 1 <?php
2 2 namespace Activitypub\Handler;
3 3
4 4 use Activitypub\Http;
5 +use Activitypub\Notification;
5 6 use Activitypub\Activity\Activity;
6 7 use Activitypub\Collection\Users;
7 8 use Activitypub\Collection\Followers;
8 9
@@ -56,8 +57,17 @@
56 57 $activity,
57 58 $user_id,
58 59 $follower
59 60 );
61 +
62 + // send notification
63 + $notification = new Notification(
64 + 'follow',
65 + $activity['actor'],
66 + $activity,
67 + $user_id
68 + );
69 + $notification->send();
60 70 }
61 71
62 72 /**
63 73 * Send Accept response