mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
appnet/statusnet/twitter: Better detection for removable links.
This commit is contained in:
parent
31ab2a3cbf
commit
24de6d38a9
3 changed files with 4 additions and 8 deletions
|
@ -1142,7 +1142,7 @@ function twitter_expand_entities($a, $body, $item, $no_tags = false, $picture) {
|
|||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue