mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 18:17:55 +00:00
Try to fetch from html again if fetching from atom gives no results.
This commit is contained in:
parent
a441ee7d21
commit
95aa6a3c65
|
@ -299,7 +299,7 @@ defmodule Pleroma.Web.OStatus do
|
|||
end
|
||||
|
||||
def fetch_activity_from_url(url) do
|
||||
with {:ok, activities} <- fetch_activity_from_atom_url(url) do
|
||||
with {:ok, activities} when length(activities) > 0 <- fetch_activity_from_atom_url(url) do
|
||||
{:ok, activities}
|
||||
else
|
||||
_e -> with {:ok, activities} <- fetch_activity_from_html_url(url) do
|
||||
|
|
Loading…
Reference in a new issue