index
:
gogs.git
Gogs is a painless self-hosted Git service
log msg
author
committer
range
buildscript
main
mygogs
about
summary
refs
log
tree
commit
diff
path:
root
/
routes
/
api
/
v1
/
user
/
follower.go
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
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
/
routes/api/v1/user/follower.go
parent
847c06d88b4d80a54403bdc6c1571dc81fc9e537
(
diff
)
api/v1: fix status response in checkUserFollowing (#5812)
Diffstat
(limited to 'routes/api/v1/user/follower.go')
-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()
}