mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Merge pull request #2674 from Human-Connection/2673-parse-xss-before-extracting-mentions-hashtags
Parse xss before extracting mentions/hashtags
This commit is contained in:
commit
a7b54bc6c5
@ -18,25 +18,26 @@ import sentry from './sentryMiddleware'
|
|||||||
|
|
||||||
export default schema => {
|
export default schema => {
|
||||||
const middlewares = {
|
const middlewares = {
|
||||||
permissions,
|
|
||||||
sentry,
|
sentry,
|
||||||
|
permissions,
|
||||||
|
xss,
|
||||||
activityPub,
|
activityPub,
|
||||||
validation,
|
validation,
|
||||||
sluggify,
|
sluggify,
|
||||||
excerpt,
|
excerpt,
|
||||||
|
email,
|
||||||
notifications,
|
notifications,
|
||||||
hashtags,
|
hashtags,
|
||||||
xss,
|
|
||||||
softDelete,
|
softDelete,
|
||||||
user,
|
user,
|
||||||
includedFields,
|
includedFields,
|
||||||
orderBy,
|
orderBy,
|
||||||
email,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let order = [
|
let order = [
|
||||||
'sentry',
|
'sentry',
|
||||||
'permissions',
|
'permissions',
|
||||||
|
'xss',
|
||||||
// 'activityPub', disabled temporarily
|
// 'activityPub', disabled temporarily
|
||||||
'validation',
|
'validation',
|
||||||
'sluggify',
|
'sluggify',
|
||||||
@ -44,7 +45,6 @@ export default schema => {
|
|||||||
'email',
|
'email',
|
||||||
'notifications',
|
'notifications',
|
||||||
'hashtags',
|
'hashtags',
|
||||||
'xss',
|
|
||||||
'softDelete',
|
'softDelete',
|
||||||
'user',
|
'user',
|
||||||
'includedFields',
|
'includedFields',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user