···373373 select p.owner_did as did, 3 as priority, p.created,
374374 'This user opened a pull request on your repository' as reason
375375 from pulls p
376376- join repos r on r.at_uri = p.repo_at
376376+ join repos r on r.repo_did = p.repo_did
377377 where r.did = ?
378378 and p.owner_did != ?
379379···382382 select i.did as did, 4 as priority, i.created,
383383 'This user opened an issue on your repository' as reason
384384 from issues i
385385- join repos r on r.at_uri = i.repo_at
385385+ join repos r on r.repo_did = i.repo_did
386386 where r.did = ?
387387 and i.did != ?
388388···391391 select pc.owner_did as did, 5 as priority, pc.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.at_uri = pc.repo_at
394394+ join repos r on r.repo_did = pc.repo_did
395395 where r.did = ?
396396 and pc.owner_did != ?
397397···401401 '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
404404- join repos r on r.at_uri = i.repo_at
404404+ join repos r on r.repo_did = i.repo_did
405405 where r.did = ?
406406 and ic.did != ?
407407···418418 select r.did as did, 8 as priority, s.created,
419419 'You recently starred a repository by this user' as reason
420420 from stars s
421421- join repos r on r.at_uri = s.subject_at
421421+ join repos r on r.at_uri = s.subject
422422 where s.did = ?
423423 and r.did != ?
424424 )