Merge branch 'develop' into oauth2
This commit is contained in:
commit
f0d41a3abf
|
@ -299,7 +299,7 @@ def fetch_activity_from_html_url(url) do
|
||||||
end
|
end
|
||||||
|
|
||||||
def fetch_activity_from_url(url) do
|
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}
|
{:ok, activities}
|
||||||
else
|
else
|
||||||
_e -> with {:ok, activities} <- fetch_activity_from_html_url(url) do
|
_e -> with {:ok, activities} <- fetch_activity_from_html_url(url) do
|
||||||
|
|
Loading…
Reference in New Issue