| @@ -13,9 +13,9 @@ | ||
| 13 | 13 | use Activitypub\Transformer\Post as Post_Transformer; |
| 14 | 14 | |
| 15 | 15 | use function Activitypub\get_rest_url_by_path; |
| 16 | 16 | use function Activitypub\is_local_comment; |
| 17 | -use function Activitypub\is_post_publicly_queryable; | |
| 17 | +use function Activitypub\is_post_disabled; | |
| 18 | 18 | use function Activitypub\is_user_type_disabled; |
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | 21 | * Class containing code for getting replies Collections and CollectionPages of posts and comments. |
| @@ -151,9 +151,9 @@ | ||
| 151 | 151 | */ |
| 152 | 152 | public static function get_context_collection( $post_id ) { |
| 153 | 153 | $post = \get_post( $post_id ); |
| 154 | 154 | |
| 155 | - if ( ! is_post_publicly_queryable( $post_id ) ) { | |
| 155 | + if ( ! $post || is_post_disabled( $post_id ) ) { | |
| 156 | 156 | return false; |
| 157 | 157 | } |
| 158 | 158 | |
| 159 | 159 | $comments = \get_comments( |