Skip to content

Commit 8231c73

Browse files
committed
fix: make user suggestions respect limits
1 parent 7b497b0 commit 8231c73

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

twitterv1/user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ func GetSuggestedUsers(c *fiber.Ctx) error {
517517
var err error
518518
// limits
519519
limit := 30
520-
if c.Query("limit") == "" {
520+
if c.Query("limit") != "" {
521521
limit, err = strconv.Atoi(c.Query("limit"))
522522
if err != nil {
523523
return c.Status(fiber.StatusBadRequest).SendString("Invalid limit value")

0 commit comments

Comments
 (0)