Check if the domain is on a blocklist

This commit is contained in:
Joakim Hellsén 2024-02-04 21:23:21 +01:00
commit 11035584af
4 changed files with 151 additions and 11 deletions

View file

@ -178,3 +178,15 @@ type ParseResult struct {
func (d *TemplateData) GetDatabaseSizeAndFeedCount() {
d.DatabaseSize = GetDBSize()
}
type BadURLs struct {
gorm.Model
URL string `json:"url"`
Active bool `json:"active"`
}
type BadURLsMeta struct {
gorm.Model
URL string `json:"url"`
LastScraped time.Time `json:"lastScraped"`
}