File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 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() {
277277 array (
278278 'type ' => 'integer ' ,
279279 'description ' => \__ ( 'Choose your preferred Actor-Mode. ' , 'activitypub ' ),
280- 'default ' => ' 1 ' ,
280+ 'default ' => ACTIVITYPUB_ACTOR_MODE ,
281281 )
282282 );
283283
Original file line number Diff line number Diff line change @@ -798,12 +798,14 @@ protected function get_cc() {
798798 * @return string|null The audience.
799799 */
800800 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 ) {
804804 $ blog = new Blog ();
805805 return $ blog ->get_id ();
806806 }
807+
808+ return null ;
807809 }
808810
809811 /**
You can’t perform that action at this time.
0 commit comments