Node.js based forum software built for the modern web
Merge branch 'develop' into activitypub
Julian Lam09e71e94a2af
diff --cc src/posts/parse.jsindex 62cc76b9c8,a29668edb5..2b7d5081d4--- a/src/posts/parse.js+++ b/src/posts/parse.js@@@ -27,15 -27,11 +27,12 @@@ let sanitizeConfig =source: ['type', 'src', 'srcset', 'sizes', 'media', 'height', 'width'],embed: ['height', 'src', 'type', 'width'],},- globalAttributes: ['accesskey', 'class', 'contenteditable', 'dir',+ nonBooleanAttributes: ['accesskey', 'class', 'contenteditable', 'dir','draggable', 'dropzone', 'hidden', 'id', 'lang', 'spellcheck', 'style',- 'tabindex', 'title', 'translate', 'aria-expanded', 'data-*',+ 'tabindex', 'title', 'translate', 'aria-*', 'data-*',],- allowedClasses: {- ...sanitize.defaults.allowedClasses,- },};+const allowedTypes = new Set(['default', 'plaintext', 'activitypub.note', 'activitypub.article']);module.exports = function (Posts) {Posts.urlRegex = {