fix: ensure self?

This commit is contained in:
cha0s 2020-12-10 03:49:24 -06:00
parent 3963519718
commit 5c344e1362

View File

@ -7,6 +7,7 @@ export default async (req, latus) => {
const {User} = ModelMap(latus);
const allIds = Array.from(new Set(
[]
.concat(user ? [user.id] : [])
.concat(user ? await user.blocks() : [])
.concat(await chatUserIds(latus, req))
.concat(