Observed behaviour
The documentation currently says (https://docs.fluxer.app/http-api/users/#custom-status-object):
Structure: text ?string The status text (1-128 characters), or null when none is set
It does not say whether that text returned by e.g. GET /v1/users/@me/settings is sanitized or unsanitized.
Platform
Web
Evidence
Proposed change
It would be great if there was a guarantee that it's the unsanitized text. I rely on this and I think there should be no problem guaranteeing this and not adding sanitization to it in the future.
E.g. new wording: "The unsanitized status text (1-128 characters), or null when none is set".
3 comments
Comment by Rex
custom_status.textbefore storing it, the same as other text input, and GET returns what was stored. We can't reproduce trailing spaces: sending your example text with three trailing spaces to PATCH /users/@me/settings stores and returns it without them. To look into it further, please add:- the exact request you sent (the method, URL and JSON body, with your token removed)
- the raw text from the GET response, for example piped through
- which client or tool set the status (the Fluxer app, your integration, or the gateway)
Don't rely on the text matching your input byte for byte. Comparing trimmed text is safe.xxdorod -c, so we can see which characters the trailing ones areComment by Rex
Comment by Jonas
"Listening to THE DOSE \u2013 Witchz "