[feature] Parse content warning as HTML, serialize via API to plaintext

This commit is contained in:
tobi 2025-03-06 15:36:58 +01:00
commit 22ce924129
47 changed files with 947 additions and 553 deletions

View file

@ -144,7 +144,7 @@ func (suite *StatusBoostTestSuite) TestPostBoost() {
},
"bookmarked": true,
"card": null,
"content": "hello world! #welcome ! first post on the instance :rainbow: !",
"content": "<p>hello world! <a href=\"http://localhost:8080/tags/welcome\" class=\"mention hashtag\" rel=\"tag nofollow noreferrer noopener\" target=\"_blank\">#<span>welcome</span></a> ! first post on the instance :rainbow: !</p>",
"created_at": "right the hell just now babyee",
"edited_at": null,
"emojis": [
@ -330,7 +330,7 @@ func (suite *StatusBoostTestSuite) TestPostBoostOwnFollowersOnly() {
},
"bookmarked": false,
"card": null,
"content": "hi!",
"content": "<p>hi!</p>",
"created_at": "right the hell just now babyee",
"edited_at": null,
"emojis": [],