You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the WriteFreely API to get all of a blog's posts, you can pass the parameter ?body=html to get HTML-formatted blog bodies. /api/collections/test/posts?body=html
However, when getting one of a blog's posts, this parameter is no longer accepted and the body becomes Markdown. /api/collections/test/posts/test?body=html
The API should accept the ?body=html parameter on both routes, so blogs can be returned in HTML, regardless of the method.
Application configuration
Single mode or Multi-user mode?: Multiple users
Database?: mysql
Open registration?: Invite-only
Federation enabled?: yes
Version or last commit: WriteFreely v0.14.0 on Ubuntu 22.04.3 LTS x86_64
The text was updated successfully, but these errors were encountered:
MeowcaTheoRange
changed the title
/api/collections/.../posts/... does not accept ?body=html like /api/collections/.../posts does
API: getting one blog does not accept ?body=html, but getting all blogs does
Nov 26, 2023
Describe the bug
When using the WriteFreely API to get all of a blog's posts, you can pass the parameter
?body=html
to get HTML-formatted blog bodies./api/collections/test/posts?body=html
However, when getting one of a blog's posts, this parameter is no longer accepted and the body becomes Markdown.
/api/collections/test/posts/test?body=html
Expected behavior
The API should accept the
?body=html
parameter on both routes, so blogs can be returned in HTML, regardless of the method.Application configuration
mysql
Version or last commit: WriteFreely v0.14.0 on Ubuntu 22.04.3 LTS x86_64
The text was updated successfully, but these errors were encountered: