Merge pull request #710 from annando/tiny-notice

One tiny little notice got hide deep in the code ...
This commit is contained in:
Tobias Diekershoff 2018-08-19 12:14:59 +02:00 committed by GitHub
commit 2c6b89804b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1432,7 +1432,7 @@ function statusnet_convertmsg(App $a, $body, $no_tags = false)
$footerlink = "[url=" . $expanded_url . "]" . $expanded_url . "[/url]"; $footerlink = "[url=" . $expanded_url . "]" . $expanded_url . "[/url]";
$body = str_replace($search, $footerlink, $body); $body = str_replace($search, $footerlink, $body);
} elseif (($oembed_data->type == "photo") && isset($oembed_data->url) && !$dontincludemedia) { } elseif (($oembed_data->type == "photo") && isset($oembed_data->url)) {
$body = str_replace($search, "[url=" . $expanded_url . "][img]" . $oembed_data->url . "[/img][/url]", $body); $body = str_replace($search, "[url=" . $expanded_url . "][img]" . $oembed_data->url . "[/img][/url]", $body);
} elseif ($oembed_data->type != "link") { } elseif ($oembed_data->type != "link") {
$body = str_replace($search, "[url=" . $expanded_url . "]" . $expanded_url . "[/url]", $body); $body = str_replace($search, "[url=" . $expanded_url . "]" . $expanded_url . "[/url]", $body);