This commit is contained in:
Christopher Cookman 2024-12-22 17:23:11 -07:00
parent 4b9b8b726c
commit fed446b7f8

View file

@ -174,7 +174,10 @@ router.post('/import', authenticate, upload.single('fileInput'), async (req, res
for (const line of lines) {
// This is a text file, split by "x/"", get [0], then split by / and get the last element, that will be an ID. All other values are static.
const robloxId = line.split('x/')[0].split('/').pop();
const reasonLong = line.split('/profile ')[1];
let reasonLong = line.split('/profile ')[1];
if (reasonLong.length > 255) {
reasonLong = reasonLong.substring(0, 255);
}
const reasonShort = "Listed by MFD";
const moderator = "MFD";
const reasonsFlag = flags.addFlag(0, reasonFlags.CHILD_SAFETY)