File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -277,7 +277,7 @@ public static function register_settings() {
277
277
array (
278
278
'type ' => 'integer ' ,
279
279
'description ' => \__ ( 'Choose your preferred Actor-Mode. ' , 'activitypub ' ),
280
- 'default ' => ' 1 ' ,
280
+ 'default ' => ACTIVITYPUB_ACTOR_MODE ,
281
281
)
282
282
);
283
283
Original file line number Diff line number Diff line change @@ -798,12 +798,14 @@ protected function get_cc() {
798
798
* @return string|null The audience.
799
799
*/
800
800
public function get_audience () {
801
- if ( is_single_user () ) {
802
- return null ;
803
- } else {
801
+ $ actor_mode = \get_option ( ' activitypub_actor_mode ' , ACTIVITYPUB_ACTOR_MODE );
802
+
803
+ if ( ACTIVITYPUB_ACTOR_AND_BLOG_MODE === $ actor_mode ) {
804
804
$ blog = new Blog ();
805
805
return $ blog ->get_id ();
806
806
}
807
+
808
+ return null ;
807
809
}
808
810
809
811
/**
You can’t perform that action at this time.
0 commit comments