mirror of
https://github.com/status-im/status-lib.git
synced 2025-01-12 13:35:00 +00:00
fix: Encode tenor search query (#43)
This commit is contained in:
parent
9e4c12f408
commit
c716a89544
@ -4,6 +4,7 @@ import strformat
|
||||
import os
|
||||
import sequtils
|
||||
import chronicles
|
||||
import uri
|
||||
|
||||
from statusgo_backend/gif import getRecentGifs, getFavoriteGifs, setFavoriteGifs, setRecentGifs
|
||||
|
||||
@ -105,7 +106,7 @@ proc tenorQuery(self: GifClient, path: string): seq[GifItem] =
|
||||
return @[]
|
||||
|
||||
proc search*(self: GifClient, query: string): seq[GifItem] =
|
||||
return self.tenorQuery(fmt("search?q={query}"))
|
||||
return self.tenorQuery(fmt("search?q={encodeUrl(query)}"))
|
||||
|
||||
proc getTrendings*(self: GifClient): seq[GifItem] =
|
||||
return self.tenorQuery("trending?")
|
||||
|
Loading…
x
Reference in New Issue
Block a user