modified file enshrined
This commit is contained in:
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
namespace Activitypub\Integration;
|
||||
|
||||
class Jetpack {
|
||||
|
||||
public static function init() {
|
||||
\add_filter( 'jetpack_sync_post_meta_whitelist', [ __CLASS__, 'add_sync_meta' ] );
|
||||
}
|
||||
|
||||
public static function add_sync_meta( $whitelist ) {
|
||||
if ( ! is_array( $whitelist ) ) {
|
||||
return $whitelist;
|
||||
}
|
||||
$activitypub_meta_keys = [
|
||||
'activitypub_user_id',
|
||||
'activitypub_inbox',
|
||||
'activitypub_actor_json',
|
||||
];
|
||||
return \array_merge( $whitelist, $activitypub_meta_keys );
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user