mirror of
https://github.com/miniflux/v2.git
synced 2025-08-31 18:31:01 +00:00
Make sure RDF entries have a date
This commit is contained in:
parent
d5838b6734
commit
eb9f588216
2 changed files with 7 additions and 0 deletions
|
@ -6,6 +6,7 @@ package rdf
|
|||
|
||||
import (
|
||||
"encoding/xml"
|
||||
"time"
|
||||
|
||||
"github.com/miniflux/miniflux2/helper"
|
||||
"github.com/miniflux/miniflux2/reader/processor"
|
||||
|
@ -58,6 +59,7 @@ func (r *rdfItem) Transform() *model.Entry {
|
|||
entry.URL = r.Link
|
||||
entry.Content = processor.ItemContentProcessor(entry.URL, r.Description)
|
||||
entry.Hash = getHash(r)
|
||||
entry.Date = time.Now()
|
||||
return entry
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue