Compare commits
1 Commits
a3309148bc
...
c90f2d48e2
Author | SHA1 | Date |
---|---|---|
Shadowfacts | c90f2d48e2 |
|
@ -81,6 +81,7 @@ defmodule Frenzy.UpdateFeeds do
|
|||
feed = Repo.preload(feed, :items)
|
||||
|
||||
Enum.map(rss.items, fn entry ->
|
||||
# todo: use Repo.exists for this
|
||||
if !Enum.any?(feed.items, fn item -> item.guid == entry.id end) do
|
||||
create_item(feed, entry)
|
||||
end
|
||||
|
@ -100,7 +101,7 @@ defmodule Frenzy.UpdateFeeds do
|
|||
|
||||
{:err, reason} ->
|
||||
Logger.warn("Unable to fetch article for #{url}: #{reason}")
|
||||
entry.content || entry.summary
|
||||
entry.description
|
||||
end
|
||||
|
||||
changeset =
|
||||
|
|
Loading…
Reference in New Issue