From e0eaaf7b23640b7b63c215cb8d43ac2d578a5632 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Mon, 4 Mar 2013 00:58:54 +0100 Subject: [PATCH] gpluspost: URL in title is removed when it points to the URL of the message --- gpluspost/gpluspost.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gpluspost/gpluspost.php b/gpluspost/gpluspost.php index 2a3037b90..be710242e 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;