simpler filter

thanks @mattwiebe
This commit is contained in:
Matthias Pfefferle 2023-07-20 18:33:24 +02:00
parent a5bc7628cf
commit dd7daf29da

View file

@ -95,12 +95,7 @@ class Test_Activitypub_Activity_Dispatcher extends ActivityPub_TestCase_Cache_HT
} }
public function test_dispatch_announce() { public function test_dispatch_announce() {
add_filter( add_filter( 'activitypub_is_user_type_disabled', '__return_false' );
'activitypub_is_user_type_disabled',
function( $value ) {
return false;
}
);
$followers = array( 'https://example.com/author/jon' ); $followers = array( 'https://example.com/author/jon' );