mirror of https://github.com/gogs/gogs.git
api/v1: fix status response in checkUserFollowing (#5812)
parent
847c06d88b
commit
11f79a2095
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue