Skip to content

Commit 5ff39c4

Browse files
authored
Add 'Follow' to inbox persisted activity types (#2115)
1 parent 3253731 commit 5ff39c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/handler/class-inbox.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public static function handle_inbox_requests( $data, $user_id, $type, $activity
3939
*
4040
* @param array $activity_types The activity types to persist in the inbox.
4141
*/
42-
$activity_types = \apply_filters( 'activitypub_persist_inbox_activity_types', array( 'Create', 'Update' ) );
42+
$activity_types = \apply_filters( 'activitypub_persist_inbox_activity_types', array( 'Create', 'Update', 'Follow' ) );
4343
$activity_types = \array_map( 'strtolower', $activity_types );
4444

4545
if ( ! \in_array( \strtolower( $type ), $activity_types, true ) ) {

0 commit comments

Comments
 (0)