mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +01:00
fix for undefined topicTitle
This commit is contained in:
@@ -450,7 +450,7 @@ var async = require('async'),
|
||||
});
|
||||
var numUsers = usernames.length;
|
||||
|
||||
var title = S(notifications[modifyIndex].topicTitle).decodeHTMLEntities().s;
|
||||
var title = S(notifications[modifyIndex].topicTitle || '').decodeHTMLEntities().s;
|
||||
var titleEscaped = title.replace(/%/g, '%').replace(/,/g, ',');
|
||||
|
||||
if (numUsers === 2) {
|
||||
|
||||
Reference in New Issue
Block a user