Skip to content

Commit

Permalink
use is_blog_public
Browse files Browse the repository at this point in the history
  • Loading branch information
pfefferle committed Sep 12, 2024
1 parent 7c44c94 commit ad99fda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion includes/model/class-blog.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

use function Activitypub\esc_hashtag;
use function Activitypub\is_single_user;
use function Activitypub\is_blog_public;
use function Activitypub\is_user_disabled;
use function Activitypub\get_rest_url_by_path;

Expand Down Expand Up @@ -381,7 +382,7 @@ public function get_featured() {
}

public function get_indexable() {
if ( \get_option( 'blog_public', 1 ) ) {
if ( is_blog_public() ) {
return true;
} else {
return false;
Expand Down
3 changes: 2 additions & 1 deletion includes/model/class-user.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use Activitypub\Collection\Users;
use Activitypub\Collection\Extra_Fields;

use function Activitypub\is_blog_public;
use function Activitypub\is_user_disabled;
use function Activitypub\get_rest_url_by_path;

Expand Down Expand Up @@ -271,7 +272,7 @@ public function get_tag() {
}

public function get_indexable() {
if ( \get_option( 'blog_public', 1 ) ) {
if ( is_blog_public() ) {
return true;
} else {
return false;
Expand Down

0 comments on commit ad99fda

Please sign in to comment.