소스 검색

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

Sauyon Lee 5 년 전
부모
커밋
11f79a2095
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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()
 	}