Remove all advertising-related code

This commit is contained in:
2023-09-18 22:43:12 +02:00
parent 2d7bceed00
commit 0063851ef5
22 changed files with 182 additions and 626 deletions

View File

@@ -125,7 +125,6 @@ func (tm *TemplateManager) ParseTemplates(silent bool) {
// Import template functions
tpl.Funcs(template.FuncMap{
"cacheID": tm.cacheID,
"isBrave": tm.isBrave,
"debugMode": tm.debugMode,
"apiUrl": tm.apiURL,
"pageNr": tm.pageNr,
@@ -218,10 +217,6 @@ var cacheID = time.Now().Unix() / 3600
func (tm *TemplateManager) cacheID() int64 {
return cacheID
}
func (tm *TemplateManager) isBrave(useragent string) bool {
return strings.Contains(useragent, "Brave")
}
func (tm *TemplateManager) debugMode() bool {
return tm.debugModeEnabled
}