0.6.0 cleanup

v1.18.x
barisusakli 10 years ago
parent 4440260f8f
commit 3272ca34ee

@ -49,14 +49,6 @@ var async = require('async'),
return next(null, null); return next(null, null);
} }
// Backwards compatibility for old notification schema
// Remove this block when NodeBB v0.6.0 is released.
if (notification.hasOwnProperty('text')) {
notification.bodyShort = notification.text;
notification.bodyLong = '';
notification.text = S(notification.text).escapeHTML().s;
}
if (notification.bodyShort) { if (notification.bodyShort) {
notification.bodyShort = S(notification.bodyShort).escapeHTML().s; notification.bodyShort = S(notification.bodyShort).escapeHTML().s;
} }

Loading…
Cancel
Save