PluginProbe
ActivityPub / 7.8.2
ActivityPub v7.8.2
9.3.1 9.3.0 9.2.2 9.2.1 9.2.0 9.1.0 9.0.2 9.0.1 9.0.0 8.3.0 8.2.1 8.2.0 8.1.1 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.2.0 1.3.0 2.0.0 2.0.1 2.1.0 2.1.1 All 160 releases
← All changes | includes/collection/class-replies.php +2 -2 8.2.0 → 7.8.2 View file →
@@ -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(