diff options
author | Sauyon Lee <git@sjle.co> | 2019-10-03 02:00:26 +0000 |
---|---|---|
committer | Jiahua Chen <u@gogs.io> | 2019-10-02 19:00:26 -0700 |
commit | 11f79a209545c53adc188197595e57f81de502e3 (patch) | |
tree | aac0ca6385fbdc8d584f4c6c84ce5b8f30f4f129 | |
parent | 847c06d88b4d80a54403bdc6c1571dc81fc9e537 (diff) |
api/v1: fix status response in checkUserFollowing (#5812)
-rw-r--r-- | routes/api/v1/user/follower.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/api/v1/user/follower.go b/routes/api/v1/user/follower.go index d5464f05..7ec533ff 100644 --- a/routes/api/v1/user/follower.go +++ b/routes/api/v1/user/follower.go @@ -63,7 +63,7 @@ func ListFollowing(c *context.APIContext) { func checkUserFollowing(c *context.APIContext, u *models.User, followID int64) { if u.IsFollowing(followID) { - c.NotFound() + c.NoContent() } else { c.NotFound() } |