Compare commits
1 Commits
c90f2d48e2
...
a3309148bc
Author | SHA1 | Date |
---|---|---|
Shadowfacts | a3309148bc |
|
@ -81,7 +81,6 @@ 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
|
||||
|
@ -101,7 +100,7 @@ defmodule Frenzy.UpdateFeeds do
|
|||
|
||||
{:err, reason} ->
|
||||
Logger.warn("Unable to fetch article for #{url}: #{reason}")
|
||||
entry.description
|
||||
entry.content || entry.summary
|
||||
end
|
||||
|
||||
changeset =
|
||||
|
|
Loading…
Reference in New Issue