mirror of
https://codeberg.org/video-prize-ranch/rimgo.git
synced 2025-06-28 07:58:23 +00:00
remove . from tagnames
This commit is contained in:
parent
33f306472f
commit
ff254c1714
@ -21,6 +21,9 @@ type Tag struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (client *Client) FetchTag(tag string, sort string, page string) (Tag, error) {
|
func (client *Client) FetchTag(tag string, sort string, page string) (Tag, error) {
|
||||||
|
// Dots are automatically removed on Imgur, so more cache hits
|
||||||
|
tag = strings.ReplaceAll(tag, ".", "")
|
||||||
|
|
||||||
cacheData, found := client.Cache.Get(tag + sort + page + "-tag")
|
cacheData, found := client.Cache.Get(tag + sort + page + "-tag")
|
||||||
if found {
|
if found {
|
||||||
return cacheData.(Tag), nil
|
return cacheData.(Tag), nil
|
||||||
|
Loading…
Reference in New Issue
Block a user