WIP: Use raw status text instead of html encoded text #88

Closed
Ghost wants to merge 1 commit from (deleted):status-text into develop
First-time contributor

do not merge
holy shit for the love of god do not merge

i wanna see just how much stuff this breaks, and if this could be deemed safe enough to use in production or if i should find a different solution for the mfm bug

characters like < and > are html-encoded in statuses meaning it's impossible to use <center> and <small> tags, as well as > quotes.

i could fix this in marked-mfm and just make it accept &lt;
i probably should do that, actually

i'm just not smart enough to decide if this is a remotely good solution or not and i need feedback

**do not merge holy shit for the love of god do not merge** i wanna see just how much stuff this breaks, and if this could be deemed safe enough to use in production or if i should find a different solution for the mfm bug characters like `<` and `>` are html-encoded in statuses meaning it's impossible to use `<center>` and `<small>` tags, as well as `> quotes`. i could fix this in marked-mfm and just make it accept `&lt;` i probably should do that, actually i'm just not smart enough to decide if this is a remotely good solution or not and i need feedback
Ghost added 1 commit 2022-07-31 19:42:22 +00:00
Use raw status text instead of html encoded text
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
cf72636562

these are indeed escaped by the backend

what we could do is allow it in the scrubber -> https://akkoma.dev/AkkomaGang/akkoma/src/branch/develop/priv/scrubbers/default.ex

which should pass <center> and <small> as expected

these are indeed escaped by the backend what we could do is allow it in the scrubber -> https://akkoma.dev/AkkomaGang/akkoma/src/branch/develop/priv/scrubbers/default.ex which should pass `<center>` and `<small>` as expected
Author
First-time contributor

wouldn't that make them render as center and small in plaintext mode, too?

wouldn't that make them render as center and small in plaintext mode, too?
Author
First-time contributor

(though actually that's a downside of this method as well i should just do the &lt; thing)

(though actually that's a downside of this method as well i should just do the `&lt;` thing)

nope, plaintext doesn't get passed through the same scrubber

image

works though so there's that

nope, plaintext doesn't get passed through the same scrubber ![image](/attachments/64f992a2-d7d4-4627-a446-440d7bf6e315) works though so there's that
Author
First-time contributor

oh cool
and what about quotes?

> stuff

(also center is still broken you might notice that markdown formatting does not work inside a center tag, i fix that in a future marked-mfm version)

oh cool and what about quotes? ``` > stuff ``` (also center is still broken you might notice that markdown formatting does not work inside a center tag, i fix that in a future marked-mfm version)

ah it doesn't work inbound though

ok hm

ah it doesn't work inbound though ok hm

ok i found something that does work, one sec

ok i found something that _does_ work, one sec

branch small-center-mfm (BE) should somewhat work

> won't, because... honestly i don't know a safe way to do that right now, but i'll look tomorrow

branch small-center-mfm (BE) should somewhat work `>` won't, because... honestly i don't know a safe way to do that right now, but i'll look tomorrow
Author
First-time contributor

yeah this can be closed then

yeah this can be closed then
Ghost closed this pull request 2022-08-01 05:52:14 +00:00
Ghost deleted branch status-text 2022-08-01 05:52:19 +00:00
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful

Pull request closed

Sign in to join this conversation.
No description provided.