mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-11 07:57:29 -06:00
[feature] Parse content warning as HTML, serialize via API to plaintext
This commit is contained in:
parent
69461c461b
commit
22ce924129
47 changed files with 947 additions and 553 deletions
|
|
@ -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": [],
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ func (suite *StatusFaveTestSuite) TestPostFave() {
|
|||
},
|
||||
"bookmarked": false,
|
||||
"card": null,
|
||||
"content": "🐕🐕🐕🐕🐕",
|
||||
"content": "<p>🐕🐕🐕🐕🐕</p>",
|
||||
"created_at": "right the hell just now babyee",
|
||||
"edited_at": null,
|
||||
"emojis": [],
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ func (suite *StatusHistoryTestSuite) TestGetHistory() {
|
|||
|
||||
suite.Equal(`[
|
||||
{
|
||||
"content": "hello everyone!",
|
||||
"content": "\u003cp\u003ehello everyone!\u003c/p\u003e",
|
||||
"spoiler_text": "introduction post",
|
||||
"sensitive": true,
|
||||
"created_at": "2021-10-20T10:40:37.000Z",
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ func (suite *StatusMuteTestSuite) TestMuteUnmuteStatus() {
|
|||
"muted": true,
|
||||
"bookmarked": false,
|
||||
"pinned": false,
|
||||
"content": "hello everyone!",
|
||||
"content": "\u003cp\u003ehello everyone!\u003c/p\u003e",
|
||||
"reblog": null,
|
||||
"application": {
|
||||
"name": "really cool gts application",
|
||||
|
|
@ -197,7 +197,7 @@ func (suite *StatusMuteTestSuite) TestMuteUnmuteStatus() {
|
|||
"muted": false,
|
||||
"bookmarked": false,
|
||||
"pinned": false,
|
||||
"content": "hello everyone!",
|
||||
"content": "\u003cp\u003ehello everyone!\u003c/p\u003e",
|
||||
"reblog": null,
|
||||
"application": {
|
||||
"name": "really cool gts application",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue