-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Parse content again for ActivityPub #12573
Comments
The existing A good starting point might be
Whereby;
|
The above commit allows plugins to alter behaviour based on the passed-in flag, but stricter sanitization is required at the end as well. |
…ses from all tags in output html, closes #12573
An additional sanitization step was added on the way in, so that useless classes are removed prior to being saved in database. This only affects |
The ActivityStreams Vocabulary defines
content
thusly:The leads to various implementors just sending straight HTML through; the same HTML they'd use to render on their frontend UI. We also do this currently, but it leads to some issues experienced:
mention
, wrapping URLs in tags, etc.)Discourse was sending a severely stripped down variant, but has since updated their parsing to allow some basic tags. It would be wise to follow suit at least for now:
https://socialhub.activitypub.rocks/t/content-formatting-when-federating-out/4150
The text was updated successfully, but these errors were encountered: