-
Notifications
You must be signed in to change notification settings - Fork 399
MSC3725: Content warnings #3725
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Robin Townsend <[email protected]>
1a23268
to
773cf56
Compare
Any news on this? |
What this needs next is an implementation. Anyone is welcome to provide one :) |
and replacing the content warning types `m.spoiler`, `m.nsfw`, `m.graphic`, and | ||
`m.medical` with `town.robin.msc3725.spoiler`, `town.robin.msc3725.nsfw`, | ||
`town.robin.msc3725.graphic`, and `town.robin.msc3725.medical` respectively. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really sure if we need to use unstable prefixes for the warning types, since it's already within an unstable field.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unstable prefixes are required here because the meanings could change still, and developers will need to then do slightly more complicated lookups/matching. For example, if m.nsfw
changed scope, the unstable implementation may need to create a whole new field instead of a town.robin.msc3725.nsfw.v2
type.
which are just one of the many event types that might require some kind of | ||
content warning (images, videos, files, etc.). This MSC proposes a more general | ||
content warning system to fill that gap, using | ||
[Extensible Events](https://github.com/matrix-org/matrix-doc/pull/1767) to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From what I can tell, there's not really any reason this is dependent on extensible events. We can just as easily add the m.content_warning
field to normal events (similar to what we did with m.mentions
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that the extensible events dependency should be dropped.
@robintown do you have time to update the MSC? If not, I can also make the changes (and probably implement this in gomuks web)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is a (probably bad) implementation of this MSC in gomuks web: tulir/gomuks#533
content warning, clients can then take measures to require consent from the user | ||
before displaying the content. | ||
|
||
## Proposal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently, this proposal allows for both the type
and description
to be unspecified, which doesn't make sense. I think that we should require at least one to be specified.
``` | ||
|
||
The `type` field is optional, and represents the general, machine-readable | ||
reason for the content warning. The following types are provided: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe mention here that there can be other values (as long as they have unstable prefixes).
Any news on this? |
Rendered
Supersedes MSC3286: Media spoilers.
Depends on MSC1767: Extensible Events.
Closes https://github.com/matrix-org/matrix-doc/issues/548.
Closes https://github.com/matrix-org/matrix-doc/issues/604.
Preview: https://pr3725--matrix-org-previews.netlify.app