Skip to content

Comments on AP posts not filtered from REST API / mobile apps #2776

@pfefferle

Description

@pfefferle

Description

Comments on ActivityPub posts (ap_post custom post type) are not being filtered out from the core REST API results. This causes them to appear in mobile apps that use the WordPress REST API.

Expected behavior

Comments on internal ActivityPub post types should be filtered from the REST API comments endpoint, similar to how the posts themselves are excluded.

Steps to reproduce

  1. Have ActivityPub posts with comments in the database
  2. Query the comments REST API endpoint
  3. Comments on ap_post type posts appear in the results
  4. These show up in mobile apps

Additional context

The ap_post custom post type is internal to the ActivityPub plugin and should not be exposed through the standard WordPress REST API.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions