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

This commit is contained in:
Sauyon Lee 2019-10-03 02:00:26 +00:00 committed by Jiahua Chen
parent 847c06d88b
commit 11f79a2095

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