diff options
author | Jordan <me@jordan.im> | 2021-12-04 01:14:13 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2021-12-04 01:14:13 -0700 |
commit | 22bda245fb3cb8da20cff8be53e0261c77240623 (patch) | |
tree | 94396edc7c2415dd87ebd26ac251e379d26ce116 /archive.go | |
parent | af2549c3efb509418f4a24476a13b40673ea7186 (diff) | |
download | keep-22bda245fb3cb8da20cff8be53e0261c77240623.tar.gz keep-22bda245fb3cb8da20cff8be53e0261c77240623.zip |
misc: housekeeping
Diffstat (limited to 'archive.go')
-rw-r--r-- | archive.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -15,7 +15,7 @@ var ( TIMEOUT time.Duration = 25 client *http.Client = &http.Client{Timeout: TIMEOUT * time.Second} - blocklist = []string{"cdn.discordapp.com", "discord.com", "tenor.com", + ignoreList = []string{"cdn.discordapp.com", "discord.com", "tenor.com", "c.tenor.com", "archive.org", "web.archive.org", "youtu.be", "youtube.com", "www.youtube.com", "discord.gg", "media.discordapp.net", "open.spotify.com"} @@ -34,9 +34,9 @@ type Closest struct { Status string `json:"status"` } -func isBlacklisted(host string) bool { +func isIgnored(host string) bool { - for _, h := range blocklist { + for _, h := range ignoreList { if host == h { return true |