Monorepo for Tangled tangled.org
5

Configure Feed

Select the types of activity you want to include in your feed.

appview/db: fix comments query in `GetVouchSuggestions`

Signed-off-by: Seongmin Lee <git@boltless.me>

author
Seongmin Lee
date (May 25, 2026, 1:34 AM +0900) commit b1cf5358 parent 249b32e8 change-id wouurryr
+9 -8
+9 -8
appview/db/vouch.go
··· 388 388 389 389 union all 390 390 391 - select pc.owner_did as did, 5 as priority, pc.created, 391 + select c.did as did, 5 as priority, c.created, 392 392 'This user commented on a pull request on your repository' as reason 393 - from pull_comments pc 394 - join repos r on r.repo_did = pc.repo_did 393 + from comments c 394 + join pulls p on p.at_uri = c.subject_uri 395 + join repos r on r.repo_did = p.repo_did 395 396 where r.did = ? 396 - and pc.owner_did != ? 397 + and c.did != ? 397 398 398 399 union all 399 400 400 - select ic.did as did, 6 as priority, ic.created, 401 + select c.did as did, 6 as priority, c.created, 401 402 'This user commented on an issue on your repository' as reason 402 - from issue_comments ic 403 - join issues i on i.at_uri = ic.issue_at 403 + from comments c 404 + join issues i on i.at_uri = c.subject_uri 404 405 join repos r on r.repo_did = i.repo_did 405 406 where r.did = ? 406 - and ic.did != ? 407 + and c.did != ? 407 408 408 409 union all 409 410