Removed deprecated addons

This commit is contained in:
Michael 2017-10-19 06:40:00 +00:00
parent 18784a484b
commit 936afb42c4
247 changed files with 13 additions and 17479 deletions

View file

@ -551,8 +551,20 @@ function twitter_post_hook(&$a,&$b) {
}
if(strlen($msg) && ($image == "")) {
// -----------------
$max_char = 280;
require_once("include/plaintext.php");
$msgarr = plaintext($a, $b, $max_char, true, 8);
$msg = $msgarr["text"];
if (($msg == "") && isset($msgarr["title"]))
$msg = shortenmsg($msgarr["title"], $max_char - 50);
if (isset($msgarr["url"]))
$msg .= "\n".$msgarr["url"];
// -----------------
$url = 'statuses/update';
$post = array('status' => $msg);
$post = array('status' => $msg, 'weighted_character_count' => 'true');
if ($iscomment)
$post["in_reply_to_status_id"] = substr($orig_post["uri"], 9);