···388388389389 union all
390390391391- select pc.owner_did as did, 5 as priority, pc.created,
391391+ select c.did as did, 5 as priority, c.created,
392392 'This user commented on a pull request on your repository' as reason
393393- from pull_comments pc
394394- join repos r on r.repo_did = pc.repo_did
393393+ from comments c
394394+ join pulls p on p.at_uri = c.subject_uri
395395+ join repos r on r.repo_did = p.repo_did
395396 where r.did = ?
396396- and pc.owner_did != ?
397397+ and c.did != ?
397398398399 union all
399400400400- select ic.did as did, 6 as priority, ic.created,
401401+ select c.did as did, 6 as priority, c.created,
401402 'This user commented on an issue on your repository' as reason
402402- from issue_comments ic
403403- join issues i on i.at_uri = ic.issue_at
403403+ from comments c
404404+ join issues i on i.at_uri = c.subject_uri
404405 join repos r on r.repo_did = i.repo_did
405406 where r.did = ?
406406- and ic.did != ?
407407+ and c.did != ?
407408408409 union all
409410