fix: Invited users should not appear as option in @mention, closes #5006

This commit is contained in:
Tom Moor
2023-03-07 20:44:41 -05:00
parent d3b099819d
commit 58f2b9aa2b
3 changed files with 43 additions and 2 deletions

View File

@@ -101,6 +101,19 @@ router.post("users.list", auth(), pagination(), async (ctx: APIContext) => {
break;
}
case "active": {
where = {
...where,
lastActiveAt: {
[Op.ne]: null,
},
suspendedAt: {
[Op.is]: null,
},
};
break;
}
case "all": {
break;
}