technicat / fedicat

moved to codeberg
https://codeberg.org/technicat/fedicat
MIT License
11 stars 1 forks source link

mitra - spoiler text not displaying #918

Closed technicat closed 5 months ago

technicat commented 5 months ago

posting a new post marked sensitive spoiler text doesn't result in the spoiler text returned

➡️ 🏷️ 'Content-Type': 'application/json'
➡️ 💿 {
  "visibility" : "public",
  "status" : "test spoiler ",
  "sensitive" : true,
  "language" : "en",
  "spoiler_text" : "spoiler "
}
⬅️ 🌍 https://wizard.casa/api/v1/statuses
⬅️ 🚦 HTTP 200
⬅️ 🏷️ 'Content-Type': 'application/json'
⬅️ 🏷️ 'content-security-policy': 'base-uri 'self'; connect-src 'self'; default-src 'none'; frame-ancestors 'none'; img-src 'self' data:; manifest-src 'self'; media-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self''
⬅️ 🏷️ 'Date': 'Mon, 06 May 2024 22:36:01 GMT'
⬅️ 🏷️ 'Strict-Transport-Security': 'max-age=63072000'
⬅️ 🏷️ 'access-control-expose-headers': 'content-type'
⬅️ 🏷️ 'Content-Length': '1107'
⬅️ 🏷️ 'x-content-type-options': 'nosniff'
⬅️ 🏷️ 'Server': 'Caddy'
⬅️ 🏷️ 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'
⬅️ 💿 {
  "account" : {
    "acct" : "technicat",
    "bot" : false,
    "locked" : false,
    "statuses_count" : 10,
    "source" : null,
    "url" : "https://wizard.casa/users/technicat",
    "actor_id" : "https://wizard.casa/users/technicat",
    "following_count" : 3,
    "client_config" : null,
    "emojis" : [

    ],
    "identity_proofs" : [

    ],
    "payment_options" : [

    ],
    "authentication_methods" : null,
    "id" : "018f4aca-30b1-eb06-9e90-603171c11dcf",
    "followers_count" : 1,
    "note" : "",
    "avatar" : null,
    "display_name" : null,
    "header" : null,
    "created_at" : "2024-05-05T22:05:15.823023Z",
    "mention_policy" : "none",
    "fields" : [

    ],
    "role" : null,
    "subscribers_count" : 0,
    "username" : "technicat"
  },
  "reblog" : null,
  "media_attachments" : [

  ],
  "url" : null,
  "spoiler_text" : "",
  "tags" : [

  ],
  "sensitive" : true,
  "replies_count" : 0,
  "emojis" : [

  ],
  "mentions" : [

  ],
  "visibility" : "public",
  "links" : [

  ],
  "uri" : "https://wizard.casa/objects/018f500c-b810-bf79-3f99-991c3ad2d930",
  "edited_at" : null,
  "id" : "018f500c-b810-bf79-3f99-991c3ad2d930",
  "reblogs_count" : 0,
  "favourited" : false,
  "ipfs_cid" : null,
  "reblogged" : false,
  "in_reply_to_account_id" : null,
  "created_at" : "2024-05-06T22:36:01.936311Z",
  "in_reply_to_id" : null,
  "pinned" : false,
  "favourites_count" : 0,
  "content" : "<p>test spoiler</p>"
}
technicat commented 5 months ago

the web UI doesn't provide for entering spoiler text so should probably set this as a platform feature

technicat commented 5 months ago

e.g. platform.supportsSpoiler