@KitRedgrave @aescling but i mean you could easily just do the backend support, only see the rot13 fallback on your own instance, but have it show up as spoilertext here 😈
@KitRedgrave @aescling yeah i mean honestly the only reason i did this slightly more complicated thing is because ROT13 is really bad for accessibility and i couldn’t in good conscience promote it on the wider fediverse without some way of easily recovering the original text
@KitRedgrave @aescling so on a supporting instance like here, you never see the ROT13, that’s just the fallback for the rest of you
@KitRedgrave @aescling i mean basically
it just does so in a way where the original text is still recoverable by frontends/other instances
@KitRedgrave @aescling doing this in Mastodon!React is a nightmare but
@KitRedgrave @aescling it’s not hard conceptually; the spoilers look like
<span property="tag:ns.1024.gdn,2022-11-11:spoiler_text" content="The actual content of the post">Typically ROT13 but it doesn’t matter; ignore this</span>
you just match spans with that property attribute, pull their content attribute, and replace them with a spoiler toggle (which is not hard to make)
@KitRedgrave wonder how hard it would be to get frontend support into pinafore lol
surely easier than it was for mastodon
@KitRedgrave i guess i can just link the commit for a full picture of what backend support looks like
the frontend is the more tricky bit; i don’t know what the current state of gotosocial frontends are or if any of them even support HTML/Markdown posts
@aescling mhm
@KitRedgrave here’s the mastodon implementation (L122–137)
https://gitlab.com/kibicat/mastodon/-/blob/trunk/app/lib/advanced_text_formatter.rb#L122-137
@KitRedgrave it’s super not difficult from a backend perspective; just a simple element replacement
re: (Experimental?) New Features in Kibicat Mastodon
@alyssa if that wasn’t the case i definitely would have looked into it
Administrator / Public Relations for GlitchCat. Not actually glitchy, nor a cat. I wrote the rules for this instance.
“Constitutionally incapable of not going hard” — @aescling
“Fedi Cassandra” – @Satsuma
I HAVE EXPERIENCE IN THINGS. YOU CAN JUST @ ME.
I work for a library but I post about Zelda fanfiction.
For the time being, this is mostly a mirror of <https://status.ladys.computer/>. Want to get in touch? E·mail me!