aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1/notify/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/notify/user.go')
-rw-r--r--routers/api/v1/notify/user.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/api/v1/notify/user.go b/routers/api/v1/notify/user.go
index a9c6b43617..267b7d8ea8 100644
--- a/routers/api/v1/notify/user.go
+++ b/routers/api/v1/notify/user.go
@@ -86,7 +86,7 @@ func ListNotifications(ctx *context.APIContext) {
}
ctx.SetTotalCountHeader(totalCount)
- ctx.JSON(http.StatusOK, convert.ToNotifications(nl))
+ ctx.JSON(http.StatusOK, convert.ToNotifications(ctx, nl))
}
// ReadNotifications mark notification threads as read, unread, or pinned
@@ -167,7 +167,7 @@ func ReadNotifications(ctx *context.APIContext) {
return
}
_ = notif.LoadAttributes(ctx)
- changed = append(changed, convert.ToNotificationThread(notif))
+ changed = append(changed, convert.ToNotificationThread(ctx, notif))
}
ctx.JSON(http.StatusResetContent, changed)