]> source.dussan.org Git - gitea.git/commit
Fix 500 when a comment was deleted which has a notification (#17550)
authorLunny Xiao <xiaolunwen@gmail.com>
Wed, 10 Nov 2021 05:48:45 +0000 (13:48 +0800)
committerGitHub <noreply@github.com>
Wed, 10 Nov 2021 05:48:45 +0000 (13:48 +0800)
commit43bbc5478370cbfe3ab1eed730ea002ccec74708
treea61e1a93843b727c40ef49b68ec75898a72e78e4
parent33fca2b537d36cf998dd27425b2bb8ed5b0965f3
Fix 500 when a comment was deleted which has a notification (#17550)

* Fix 500 when a comment was deleted which has a notification

* Tolerate missing Comment in other places too

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
models/notification.go
routers/api/v1/notify/repo.go
routers/api/v1/notify/threads.go