fix: ensure self?
This commit is contained in:
parent
3963519718
commit
5c344e1362
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue
Block a user