よく話すユーザーからサスペンドされたユーザーを隠すなど (#4228)
* Resolve #4226 * fix * Fix: anonymousでアクセスするとサスペンドユーザーが隠れない * fix
This commit is contained in:
parent
52c3f9e98c
commit
f3ce8564ea
2 changed files with 6 additions and 2 deletions
|
|
@ -4,7 +4,7 @@ import User, { IUser } from '../../../models/user';
|
|||
import { unique } from '../../../prelude/array';
|
||||
|
||||
export async function getHideUserIds(me: IUser) {
|
||||
return me ? await getHideUserIdsById(me._id) : [];
|
||||
return await getHideUserIdsById(me ? me._id : null);
|
||||
}
|
||||
|
||||
export async function getHideUserIdsById(meId?: mongo.ObjectID) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue