Skip to content

Commit

Permalink
fix like count including deleted posts
Browse files Browse the repository at this point in the history
Southclaws committed Sep 23, 2024
1 parent 81fde20 commit 0c3673f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/resources/post/thread/db.go
Original file line number Diff line number Diff line change
@@ -176,7 +176,7 @@ const repliesCountManyQuery = `select
count(a.id) replied -- has this account replied
from
posts p
inner join posts r on r.root_post_id = p.id
inner join posts r on r.root_post_id = p.id and p.deleted_at is null
left join accounts a on a.id = p.account_posts and a.id = $1
group by p.id
`

0 comments on commit 0c3673f

Please sign in to comment.