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

pull/5612/merge
Sauyon Lee 2019-10-03 02:00:26 +00:00 committed by Jiahua Chen
parent 847c06d88b
commit 11f79a2095
1 changed files with 1 additions and 1 deletions

View File

@ -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()
}