1
0
Fork 0

Fix AP actor follows count

This commit is contained in:
Chocobozzz 2024-04-25 10:51:40 +02:00
parent 9244620f37
commit 47ae6e880d
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -710,7 +710,7 @@ export class ActorFollowModel extends SequelizeModel<ActorFollowModel> {
data: followers.map(f => ({ selectionUrl: f.selectionUrl, createdAt: f.createdAt })) as { selectionUrl: string, createdAt: string }[],
total: selectTotal
? parseInt(resDataTotal?.dataTotal?.[0]?.total || 0, 10)
? parseInt(resDataTotal?.[0]?.total || 0, 10)
: undefined
}
}