appnet/statusnet/twitter: Better detection for removable links.

This commit is contained in:
Michael Vogel 2014-07-27 22:04:04 +02:00
parent 31ab2a3cbf
commit 24de6d38a9
3 changed files with 4 additions and 8 deletions

View file

@ -1538,7 +1538,7 @@ function statusnet_convertmsg($a, $body, $no_tags = false) {
if (($footerlink != "") AND (trim($footer) != "")) {
$removedlink = trim(str_replace($footerlink, "", $body));
if (strstr($body, $removedlink))
if (($removedlink == "") OR strstr($body, $removedlink))
$body = $removedlink;
$body .= $footer;