Skip to content
Snippets Groups Projects
Commit f0d41a3a authored by lain's avatar lain
Browse files

Merge branch 'develop' into oauth2

parents 464c33e9 95aa6a3c
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment