show username instead of uid on history
isekai-main
Barış Soner Uşaklı 2 years ago
parent 6eb1dd8687
commit 59b149784f

@ -770,6 +770,13 @@ Flags.getHistory = async function (flagId) {
};
});
// turn assignee uids into usernames
await Promise.all(history.map(async (entry) => {
if (entry.fields.hasOwnProperty('assignee')) {
entry.fields.assignee = await user.getUserField(entry.fields.assignee, 'username');
}
}));
// Append ban history and username change data
history = await mergeBanHistory(history, targetUid, uids);
history = await mergeMuteHistory(history, targetUid, uids);

Loading…
Cancel
Save