This commit is contained in:
barisusakli
2017-03-14 23:03:03 +03:00
parent 25518bdd18
commit 5a2ff8ed0a
12 changed files with 252 additions and 179 deletions

View File

@@ -60,9 +60,6 @@ Flags.list = function (filters, uid, callback) {
value.forEach(function (x) {
orSets.push(setPrefix + x);
});
} else {
// Empty array, do nothing
}
};
@@ -604,6 +601,7 @@ Flags.notify = function (flagObj, uid, callback) {
var titleEscaped = title.replace(/%/g, '%').replace(/,/g, ',');
notifications.create({
type: 'new-post-flag',
bodyShort: '[[notifications:user_flagged_post_in, ' + flagObj.reporter.username + ', ' + titleEscaped + ']]',
bodyLong: flagObj.description,
pid: flagObj.targetId,