Don't Sanitize Undefined Team Notices (#1725)

Don't Sanitize Undefined Team Notices

GitOrigin-RevId: 540316d71bc4047d25100bb0ef524d5d2adba0b1
This commit is contained in:
Timothée Alby 2019-04-23 10:19:18 -04:00 committed by sharelatex
parent 6232854ff7
commit e2793f659c

View file

@ -96,6 +96,7 @@ module.exports =
} }
for memberGroupSubscription in memberGroupSubscriptions for memberGroupSubscription in memberGroupSubscriptions
if memberGroupSubscription.teamNotice
memberGroupSubscription.teamNotice = sanitizeHtml(memberGroupSubscription.teamNotice) memberGroupSubscription.teamNotice = sanitizeHtml(memberGroupSubscription.teamNotice)
callback null, { callback null, {