Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.

Apply rot13 to discord spoilers in unformatted matrix message body #14

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

xenofem
Copy link

@xenofem xenofem commented Mar 27, 2021

Currently, spoilered text from a discord message appears verbatim in the unformatted body of the corresponding matrix message. This isn't ideal, since it shows up in contexts such as desktop notifications. My proposal is to display the spoiler contents in rot13, a commonly-used format for spoilers on various platforms that don't offer native spoiler functionality. This preserves the semantics of the spoiler even when HTML display isn't available, and ensures that matrix users won't be shown content they may not have wanted to see.

@xenofem xenofem marked this pull request as draft April 14, 2021 22:00
@xenofem
Copy link
Author

xenofem commented Apr 14, 2021

Reverting this to a draft while I revise it to use the mxc URI approach proposed in matrix-org/matrix-spec-proposals#2010, which works with spoilered content that isn't composed primarily of ascii alphabet characters.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant