0.6.0 cleanup

This commit is contained in:
barisusakli
2014-11-06 17:33:10 -05:00
parent 4440260f8f
commit 3272ca34ee

View File

@@ -49,14 +49,6 @@ var async = require('async'),
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) {
notification.bodyShort = S(notification.bodyShort).escapeHTML().s;
}