Skip to content

Commit 149a6be

Browse files
committed
fix: have users lookup look at post body
1 parent 7394b4b commit 149a6be

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

twitterv1/user.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ func UsersLookup(c *fiber.Ctx) error {
6161
user_id := c.Query("user_id")
6262
var usersToLookUp []string
6363

64+
if screen_name == "" && user_id == "" {
65+
screen_name = c.FormValue("screen_name")
66+
user_id = c.FormValue("user_id")
67+
}
68+
6469
if screen_name != "" {
6570
usersToLookUp = strings.Split(screen_name, ",")
6671
} else if user_id != "" {

0 commit comments

Comments
 (0)