From c33aa2ccee25a139b75330c1cd86c6164a020276 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 2 Oct 2017 19:00:33 +0000 Subject: [PATCH] Diaspora: Reshares of reshares sometimes had problems --- include/diaspora.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/diaspora.php b/include/diaspora.php index 3313314ca1..16bce93e11 100644 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -2331,7 +2331,7 @@ class Diaspora { // If it is a reshared post from another network then reformat to avoid display problems with two share elements if (self::is_reshare($r[0]["body"], true)) { $r = array(); - } elseif (self::is_reshare($r[0]["body"], false)) { + } elseif (self::is_reshare($r[0]["body"], false) || strstr($r[0]["body"], "[share")) { $r[0]["body"] = diaspora2bb(bb2diaspora($r[0]["body"])); $r[0]["body"] = self::replace_people_guid($r[0]["body"], $r[0]["author-link"]);