This commit is contained in:
syuilo
2018-06-18 14:28:43 +09:00
parent 80e5645a84
commit e66d7babc5
56 changed files with 115 additions and 112 deletions

View File

@@ -220,7 +220,7 @@ export const pack = async (
hide = false;
} else {
// 指定されているかどうか
const specified = _note.visibleUserIds.some(id => id.equals(meId));
const specified = _note.visibleUserIds.some((id: mongo.ObjectID) => id.equals(meId));
if (specified) {
hide = false;
@@ -272,7 +272,7 @@ export const pack = async (
}
// Populate media
_note.media = hide ? [] : Promise.all(_note.mediaIds.map(fileId =>
_note.media = hide ? [] : Promise.all(_note.mediaIds.map((fileId: mongo.ObjectID) =>
packFile(fileId)
));