From 95aa6a3c651fed9810889d3446f2a1d710efb55e Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Fri, 8 Sep 2017 09:08:31 +0200 Subject: [PATCH] Try to fetch from html again if fetching from atom gives no results. --- lib/pleroma/web/ostatus/ostatus.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.45.2