mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-25 06:41:36 -07:00
fix: when count is actually 0
This commit is contained in:
parent
59b3bd2a58
commit
d8c0ba0795
1 changed files with 2 additions and 2 deletions
|
@ -488,8 +488,8 @@ export const UserRepository = db.getRepository(User).extend({
|
|||
birthday: profile!.birthday,
|
||||
lang: profile!.lang,
|
||||
fields: profile!.fields,
|
||||
followersCount: followersCount || '?',
|
||||
followingCount: followingCount || '?',
|
||||
followersCount: followersCount || 0,
|
||||
followingCount: followingCount || 0,
|
||||
notesCount: user.notesCount,
|
||||
pinnedNoteIds: pins.map((pin) => pin.noteId),
|
||||
pinnedNotes: Notes.packMany(
|
||||
|
|
Loading…
Reference in a new issue