forked from friendica/friendica-addons
Merge pull request #1306 from friendica/mastodon-api
API constant changed
This commit is contained in:
commit
db3a36bd02
|
@ -185,7 +185,7 @@ function windowsphonepush_cron()
|
||||||
if (substr($body, 0, 4) == "[url") {
|
if (substr($body, 0, 4) == "[url") {
|
||||||
$body = "URL/Image ...";
|
$body = "URL/Image ...";
|
||||||
} else {
|
} else {
|
||||||
$body = BBCode::convertForUriId($item['uri-id'], $body, BBCode::API);
|
$body = BBCode::convertForUriId($item['uri-id'], $body, BBCode::MASTODON_API);
|
||||||
$body = HTML::toPlaintext($body, 0);
|
$body = HTML::toPlaintext($body, 0);
|
||||||
$body = ((strlen($body) > 137) ? substr($body, 0, 137) . "..." : $body);
|
$body = ((strlen($body) > 137) ? substr($body, 0, 137) . "..." : $body);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue