summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/user/star.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/user/star.go')
-rw-r--r--routers/api/v1/user/star.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/user/star.go b/routers/api/v1/user/star.go
index b0016399c8..62c820f8f4 100644
--- a/routers/api/v1/user/star.go
+++ b/routers/api/v1/user/star.go
@@ -96,7 +96,7 @@ func IsStarring(ctx *context.APIContext) {
if models.IsStaring(ctx.User.ID, ctx.Repo.Repository.ID) {
ctx.Status(204)
} else {
- ctx.Status(404)
+ ctx.NotFound()
}
}