summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/notify/threads.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/notify/threads.go')
-rw-r--r--routers/api/v1/notify/threads.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/api/v1/notify/threads.go b/routers/api/v1/notify/threads.go
index 2e241080b4..5bfdd4d963 100644
--- a/routers/api/v1/notify/threads.go
+++ b/routers/api/v1/notify/threads.go
@@ -40,7 +40,7 @@ func GetThread(ctx *context.APIContext) {
if n == nil {
return
}
- if err := n.LoadAttributes(); err != nil {
+ if err := n.LoadAttributes(); err != nil && !models.IsErrCommentNotExist(err) {
ctx.InternalServerError(err)
return
}
@@ -92,7 +92,7 @@ func ReadThread(ctx *context.APIContext) {
ctx.InternalServerError(err)
return
}
- if err = notif.LoadAttributes(); err != nil {
+ if err = notif.LoadAttributes(); err != nil && !models.IsErrCommentNotExist(err) {
ctx.InternalServerError(err)
return
}