mirror of https://github.com/Chocobozzz/PeerTube
Fix AP actor follows count
parent
9244620f37
commit
47ae6e880d
|
@ -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 }[],
|
data: followers.map(f => ({ selectionUrl: f.selectionUrl, createdAt: f.createdAt })) as { selectionUrl: string, createdAt: string }[],
|
||||||
|
|
||||||
total: selectTotal
|
total: selectTotal
|
||||||
? parseInt(resDataTotal?.dataTotal?.[0]?.total || 0, 10)
|
? parseInt(resDataTotal?.[0]?.total || 0, 10)
|
||||||
: undefined
|
: undefined
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue