Răsfoiți Sursa

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

Sauyon Lee 5 ani în urmă
părinte
comite
11f79a2095
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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()
 	}