forked from friendica/friendica-addons
gpluspost: URL in title is removed when it points to the URL of the message
This commit is contained in:
parent
63404c06c9
commit
e0eaaf7b23
1 changed files with 5 additions and 3 deletions
|
@ -283,9 +283,6 @@ function gpluspost_feeditem($pid, $uid) {
|
||||||
if ($msglink == "")
|
if ($msglink == "")
|
||||||
$msglink = $item["plink"];
|
$msglink = $item["plink"];
|
||||||
|
|
||||||
if ($image != $msglink)
|
|
||||||
$html = trim(str_replace($msglink, "", $html));
|
|
||||||
|
|
||||||
// Fetching the title - or the first line
|
// Fetching the title - or the first line
|
||||||
if ($item["title"] != "")
|
if ($item["title"] != "")
|
||||||
$title = $item["title"];
|
$title = $item["title"];
|
||||||
|
@ -294,6 +291,11 @@ function gpluspost_feeditem($pid, $uid) {
|
||||||
$title = $lines[0];
|
$title = $lines[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($image != $msglink)
|
||||||
|
$html = trim(str_replace($msglink, "", $html));
|
||||||
|
|
||||||
|
$title = trim(str_replace($msglink, "", $title));
|
||||||
|
|
||||||
if ($uid == 0)
|
if ($uid == 0)
|
||||||
$title = $item["author-name"].": ".$title;
|
$title = $item["author-name"].": ".$title;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue