check if it is an explicit "undo -> follow" action
This commit is contained in:
parent
0dd079aee7
commit
e7c0526103
1 changed files with 3 additions and 1 deletions
|
@ -273,8 +273,10 @@ class Inbox {
|
||||||
* @param int $user_id The id of the local blog-user
|
* @param int $user_id The id of the local blog-user
|
||||||
*/
|
*/
|
||||||
public static function handle_unfollow( $object, $user_id ) {
|
public static function handle_unfollow( $object, $user_id ) {
|
||||||
|
if ( isset( $object['object'] ) && isset( $object['object']['type'] ) && 'Follow' === $object['object']['type'] ) {
|
||||||
\Activitypub\Peer\Followers::remove_follower( $object['actor'], $user_id );
|
\Activitypub\Peer\Followers::remove_follower( $object['actor'], $user_id );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handles "Reaction" requests
|
* Handles "Reaction" requests
|
||||||
|
|
Loading…
Reference in a new issue