fix: #9176, limit description size

v1.18.x
Barış Soner Uşaklı 4 years ago
parent 6cbb77afda
commit da54697075

@ -32,7 +32,7 @@ module.exports = {
} }
methods.push( methods.push(
db.sortedSetAdd.bind(db, `flag:${flagObj.flagId}:reports`, flagObj.datetime, flagObj.description), db.sortedSetAdd.bind(db, `flag:${flagObj.flagId}:reports`, flagObj.datetime, String(flagObj.description).substr(0, 250)),
db.sortedSetAdd.bind(db, `flag:${flagObj.flagId}:reporters`, flagObj.datetime, flagObj.uid) db.sortedSetAdd.bind(db, `flag:${flagObj.flagId}:reporters`, flagObj.datetime, flagObj.uid)
); );

Loading…
Cancel
Save