func checkUserFollowing(ctx *context.APIContext, u *models.User, followID int64) { if u.IsFollowing(followID) { ctx.Status(204) } else { ctx.Status(404) } }
func checkUserFollowing(ctx *middleware.Context, u *models.User, followID int64) { if u.IsFollowing(followID) { ctx.Status(204) } else { ctx.Error(404) } }