Skip to content

Overhaul the quote API#6412

Merged
dtdesign merged 10 commits into6.2from
62-quote-api
Aug 4, 2025
Merged

Overhaul the quote API#6412
dtdesign merged 10 commits into6.2from
62-quote-api

Conversation

@dtdesign
Copy link
Copy Markdown
Member

@dtdesign dtdesign commented Aug 3, 2025

This moves the fetching and the preparation of the quoted message back into the quote handler, enabling implementations to have a much greater flexibility over the object creation and validation. Furthermore this uses the className property as an indicator for legacy implementations to allow for a much cleaner transition once we drop support for it.

There have also been some fixes in regards to comments authored by guests and implementations that do not support full quotes at all.

One side-effect of this PR is that the endpoint for the message author had been removed. Its logic was quite similar to the endpoint to render quotes and with a small modification it was possible to merge them.

Existing implementations for the API of 6.1 or earlier remain fully compatible without any changes required, although it is strongly recommended to migrate to the updated API.

@dtdesign dtdesign moved this to Minor Task in WoltLab Suite 6.2 Aug 3, 2025
@dtdesign dtdesign merged commit bd85086 into 6.2 Aug 4, 2025
8 checks passed
@dtdesign dtdesign deleted the 62-quote-api branch August 4, 2025 11:01
@github-project-automation github-project-automation Bot moved this from Minor Task to Done in WoltLab Suite 6.2 Aug 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant