diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-09-08 09:08:31 +0200 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-09-08 09:08:31 +0200 |
commit | 95aa6a3c651fed9810889d3446f2a1d710efb55e (patch) | |
tree | a6283e87681b78bbbf859a3dce5ba4ba2b139aa9 /lib | |
parent | a441ee7d21de38b27004afe11fd8ee5d0f865ccf (diff) | |
download | pleroma-95aa6a3c651fed9810889d3446f2a1d710efb55e.tar.gz |
Try to fetch from html again if fetching from atom gives no results.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/ostatus/ostatus.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/ostatus/ostatus.ex b/lib/pleroma/web/ostatus/ostatus.ex index 3e2acdd0f..fa8c086d6 100644 --- a/lib/pleroma/web/ostatus/ostatus.ex +++ b/lib/pleroma/web/ostatus/ostatus.ex @@ -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 |