]> git.mxchange.org Git - friendica-addons.git/commitdiff
gpluspost: URL in title is removed when it points to the URL of the message
authorMichael Vogel <icarus@dabo.de>
Sun, 3 Mar 2013 23:58:54 +0000 (00:58 +0100)
committerMichael Vogel <icarus@dabo.de>
Sun, 3 Mar 2013 23:58:54 +0000 (00:58 +0100)
gpluspost/gpluspost.php

index 2a3037b90e4b54a1e30d736646b1a70307431ff7..be710242e0a27b24149c1a1153bcc6503ee998ce 100644 (file)
@@ -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;