From: Michael Vogel Date: Sun, 3 Mar 2013 23:58:54 +0000 (+0100) Subject: gpluspost: URL in title is removed when it points to the URL of the message X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e0eaaf7b23640b7b63c215cb8d43ac2d578a5632;p=friendica-addons.git gpluspost: URL in title is removed when it points to the URL of the message --- diff --git a/gpluspost/gpluspost.php b/gpluspost/gpluspost.php index 2a3037b9..be710242 100644 --- a/gpluspost/gpluspost.php +++ b/gpluspost/gpluspost.php @@ -283,9 +283,6 @@ function gpluspost_feeditem($pid, $uid) { if ($msglink == "") $msglink = $item["plink"]; - if ($image != $msglink) - $html = trim(str_replace($msglink, "", $html)); - // Fetching the title - or the first line if ($item["title"] != "") $title = $item["title"]; @@ -294,6 +291,11 @@ function gpluspost_feeditem($pid, $uid) { $title = $lines[0]; } + if ($image != $msglink) + $html = trim(str_replace($msglink, "", $html)); + + $title = trim(str_replace($msglink, "", $title)); + if ($uid == 0) $title = $item["author-name"].": ".$title;