Add a worker to fetch new replies to known messages. #481
1 changed files with 6 additions and 0 deletions
|
@ -53,6 +53,12 @@ defp objects_from_collection(%{"type" => type, "first" => %{"id" => id}})
|
|||
fetch_page_items(id)
|
||||
end
|
||||
|
||||
defp objects_from_collection(%{"type" => type, "first" => %{"items" => items} = first})
|
||||
when type in ["Collection", "OrderedCollection"] and is_list(items) do
|
||||
maybe_next_page(first, items)
|
||||
end
|
||||
|
||||
|
||||
defp objects_from_collection(_page), do: []
|
||||
|
||||
defp fetch_page_items(id, items \\ []) do
|
||||
|
|
Loading…
Reference in a new issue