fix: count album comments and likes correctly (#19114)

This commit is contained in:
Zack Pollard 2025-06-11 14:49:13 +01:00 committed by GitHub
parent c03e72c1da
commit bedcf50196
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 5 deletions

View file

@ -75,8 +75,8 @@ from
inner join "users" on "users"."id" = "activity"."userId"
and "users"."deletedAt" is null
left join "assets" on "assets"."id" = "activity"."assetId"
and "assets"."deletedAt" is null
and "assets"."visibility" != 'locked'
where
"activity"."assetId" = $3
and "activity"."albumId" = $4
and "assets"."deletedAt" is null
and "assets"."visibility" != 'locked'