mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 18:08:49 +00:00
Removed deprecated addons
This commit is contained in:
parent
18784a484b
commit
936afb42c4
247 changed files with 13 additions and 17479 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue