mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-29 07:18:08 +09:00
fix: when count is actually 0
This commit is contained in:
parent
59b3bd2a58
commit
d8c0ba0795
@ -488,8 +488,8 @@ export const UserRepository = db.getRepository(User).extend({
|
|||||||
birthday: profile!.birthday,
|
birthday: profile!.birthday,
|
||||||
lang: profile!.lang,
|
lang: profile!.lang,
|
||||||
fields: profile!.fields,
|
fields: profile!.fields,
|
||||||
followersCount: followersCount || '?',
|
followersCount: followersCount || 0,
|
||||||
followingCount: followingCount || '?',
|
followingCount: followingCount || 0,
|
||||||
notesCount: user.notesCount,
|
notesCount: user.notesCount,
|
||||||
pinnedNoteIds: pins.map((pin) => pin.noteId),
|
pinnedNoteIds: pins.map((pin) => pin.noteId),
|
||||||
pinnedNotes: Notes.packMany(
|
pinnedNotes: Notes.packMany(
|
||||||
|
Loading…
Reference in New Issue
Block a user