Skip to content

Add quote and quoted_update notification types#287

Merged
akirk merged 1 commit intomainfrom
fix/notification-types-quote
Mar 26, 2026
Merged

Add quote and quoted_update notification types#287
akirk merged 1 commit intomainfrom
fix/notification-types-quote

Conversation

@akirk
Copy link
Copy Markdown
Owner

@akirk akirk commented Mar 26, 2026

Summary

  • Adds quote and quoted_update to the types and exclude_types enum lists for the /api/v1/notifications endpoint
  • These are newer Mastodon notification types that apps like Mona for iPhone already send
  • Without them, WordPress REST API rejects the entire request with rest_invalid_param because the enum validation fails on unknown values

Fixes https://wordpress.org/support/topic/mona-app-ios-rest_invalid_param-400-2/#post-18863125

Test plan

  • Open Mona for iPhone and check that notifications load without error
  • Verify /api/v1/notifications?types[]=quote returns a valid response instead of rest_invalid_param

Mona for iPhone sends these newer Mastodon notification types in its
requests, causing WordPress REST API to reject the entire request with
rest_invalid_param because they were missing from the enum validation.
@akirk akirk merged commit ff7d96a into main Mar 26, 2026
17 checks passed
@akirk akirk deleted the fix/notification-types-quote branch March 26, 2026 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant