mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +01:00
0.6.0 cleanup
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user