enhance(Page): ページを非公開にできるように (MisskeyIO#821)

This commit is contained in:
まっちゃてぃー。 2024-12-11 03:23:16 +09:00 committed by GitHub
parent 6a416468e3
commit 1a81d3fa46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 75 additions and 16 deletions

View file

@ -105,6 +105,7 @@ export class PageEntityService {
attachedFiles: this.driveFileEntityService.packMany((await Promise.all(attachedFiles)).filter(isNotNull), me),
likedCount: page.likedCount,
isLiked: meId ? await this.pageLikesRepository.exists({ where: { pageId: page.id, userId: meId } }) : undefined,
visibility: page.visibility,
});
}