mirror of
https://github.com/miniflux/v2.git
synced 2025-08-31 18:31:01 +00:00
Ignore enclosures without URL
This commit is contained in:
parent
cb494ac416
commit
997e9422eb
9 changed files with 144 additions and 12 deletions
|
@ -57,6 +57,10 @@ func (s *Storage) GetEnclosures(entryID int64) (model.EnclosureList, error) {
|
|||
|
||||
// CreateEnclosure creates a new attachment.
|
||||
func (s *Storage) CreateEnclosure(enclosure *model.Enclosure) error {
|
||||
if enclosure.URL == "" {
|
||||
return nil
|
||||
}
|
||||
|
||||
query := `
|
||||
INSERT INTO enclosures
|
||||
(url, size, mime_type, entry_id, user_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue