use Friendica\App;
use Friendica\Content\Text\BBCode;
+use Friendica\Content\Text\Plaintext;
use Friendica\Core\Addon;
use Friendica\Core\Config;
use Friendica\Core\L10n;
if (($profile->service == "twitter") && isset($post["url"]) && ($post["type"] != "photo"))
$post["text"] .= " ".$post["url"];
elseif (($profile->service == "appdotnet") && isset($post["url"]) && isset($post["title"]) && ($post["type"] != "photo")) {
- $post["title"] = BBCode::shortenMsg($post["title"], 90);
- $post["text"] = BBCode::shortenMsg($post["text"], $limit - (24 + strlen($post["title"])));
+ $post["title"] = Plaintext::shorten($post["title"], 90);
+ $post["text"] = Plaintext::shorten($post["text"], $limit - (24 + strlen($post["title"])));
$post["text"] .= "\n[".$post["title"]."](".$post["url"].")";
} elseif (($profile->service == "appdotnet") && isset($post["url"]) && ($post["type"] != "photo"))
$post["text"] .= " ".$post["url"];
use Friendica\App;
use Friendica\Content\OEmbed;
use Friendica\Content\Text\BBCode;
+use Friendica\Content\Text\Plaintext;
use Friendica\Core\Addon;
use Friendica\Core\Config;
use Friendica\Core\L10n;
$msg = $msgarr["text"];
if (($msg == "") && isset($msgarr["title"]))
- $msg = BBCode::shortenMsg($msgarr["title"], $max_char - 50);
+ $msg = Plaintext::shorten($msgarr["title"], $max_char - 50);
$image = "";
use Friendica\App;
use Friendica\Content\OEmbed;
use Friendica\Content\Text\BBCode;
+use Friendica\Content\Text\Plaintext;
use Friendica\Core\Addon;
use Friendica\Core\Config;
use Friendica\Core\L10n;
$msg = $msgarr["text"];
if (($msg == "") && isset($msgarr["title"])) {
- $msg = BBCode::shortenMsg($msgarr["title"], $max_char - 50);
+ $msg = Plaintext::shorten($msgarr["title"], $max_char - 50);
}
$image = "";
$msg = $msgarr["text"];
if (($msg == "") && isset($msgarr["title"])) {
- $msg = BBCode::shortenMsg($msgarr["title"], $max_char - 50);
+ $msg = Plaintext::shorten($msgarr["title"], $max_char - 50);
}
if (isset($msgarr["url"])) {