POST /api/v1/statuses strips away html-tag-like strings when format is plain text
tl;dr: /api/v1/statuses should escape, instead of remove html-tag-like strings.
Environment
- Installation type (OTP or From Source): OTP
- Pleroma version (could be found in the "Version" tab of settings in Pleroma-FE): https://lily.kazv.moe/infra/pleroma/commit/91aab6654
- Elixir version (
elixir -v
for from source installations, N/A for OTP): N/A - Operating system: Ubuntu 20.04
- PostgreSQL version (
psql -V
): 13.5
Bug description
-
Draft a post with content
std::forward<T>
in plain text mode -
Preview it
Expected: Preview has std::forward<T>
Actual: Preview has std::forward
Additional info:
the POST /api/v1/statuses response for a plain-text status has "content": "std::forward"
, while the one for Markdown has "content": "<p>std::forward<T></p>"
.