mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix: album comment count including trashed assets (#19117)
This commit is contained in:
parent
5dd3a6e13f
commit
08e2b22db8
2 changed files with 14 additions and 8 deletions
|
|
@ -75,8 +75,13 @@ 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'
|
||||
)
|
||||
or "assets"."id" is null
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue