Parcourir la source

api/v1: fix status response in checkUserFollowing (#5812)

Sauyon Lee il y a 5 ans
Parent
commit
11f79a2095
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      routes/api/v1/user/follower.go

+ 1 - 1
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()
 	}