diff options
author | Frédéric Guillot <fred@miniflux.net> | 2017-11-20 19:25:30 -0800 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2017-11-20 19:25:30 -0800 |
commit | eb9f5882167058ddf754803b3506e3fce61090b6 (patch) | |
tree | 65f8001e5efd0bf8f57dfae5b5194aba65705288 /reader/rdf/rdf.go | |
parent | d5838b67340ca83dcc32f6d1775c183188ec5e7a (diff) |
Make sure RDF entries have a date
Diffstat (limited to 'reader/rdf/rdf.go')
-rw-r--r-- | reader/rdf/rdf.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/reader/rdf/rdf.go b/reader/rdf/rdf.go index 05281ca..8622d66 100644 --- a/reader/rdf/rdf.go +++ b/reader/rdf/rdf.go @@ -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 } |