Merge pull request #4569 from annando/bugfix-diaspora-reshare

Bugfix: Reshare with added content to Diaspora looked ugly
This commit is contained in:
Hypolite Petovan 2018-03-09 15:23:11 -05:00 committed by GitHub
commit f0c9b4cdf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1123,13 +1123,13 @@ class BBCode
}
if (stripos(normalise_link($link), 'http://twitter.com/') === 0) {
$text .= '<br /><a href="' . $link . '">' . $link . '</a>';
} else {
$text .= $headline . '<blockquote>' . trim($share[3]) . "</blockquote><br />";
if ($link != "") {
$text .= '<br /><a href="' . $link . '">[l]</a>';
}
} else {
$text .= '<br /><a href="' . $link . '">' . $link . '</a>';
}
break;