Skip to content

Commit 281ede9

Browse files
authored
Add following meta key to Jetpack sync allowlist (#2226)
1 parent 30b905c commit 281ede9

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: minor
2+
Type: added
3+
4+
Sync following meta to enable RSS feed subscriptions for ActivityPub actors in WordPress.com Reader

integration/class-jetpack.php

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
namespace Activitypub\Integration;
99

1010
use Activitypub\Collection\Followers;
11+
use Activitypub\Collection\Following;
1112
use Activitypub\Comment;
1213

1314
/**
@@ -32,14 +33,10 @@ public static function init() {
3233
* @return array The Jetpack sync allow list with ActivityPub meta keys.
3334
*/
3435
public static function add_sync_meta( $allow_list ) {
35-
if ( ! is_array( $allow_list ) ) {
36-
return $allow_list;
37-
}
38-
$activitypub_meta_keys = array(
39-
Followers::FOLLOWER_META_KEY,
40-
'_activitypub_inbox',
41-
);
42-
return \array_merge( $allow_list, $activitypub_meta_keys );
36+
$allow_list[] = Followers::FOLLOWER_META_KEY;
37+
$allow_list[] = Following::FOLLOWING_META_KEY;
38+
39+
return $allow_list;
4340
}
4441

4542
/**

0 commit comments

Comments
 (0)