Twitter/Statusnet: Use "RD" and "RT" for repeated messages.
parent
9177ee2ecb
commit
c3538fb538
|
@ -555,7 +555,7 @@ function statusnet_post_hook(&$a,&$b) {
|
||||||
$tempfile = "";
|
$tempfile = "";
|
||||||
require_once("include/plaintext.php");
|
require_once("include/plaintext.php");
|
||||||
require_once("include/network.php");
|
require_once("include/network.php");
|
||||||
$msgarr = plaintext($a, $b, $max_char, true);
|
$msgarr = plaintext($a, $b, $max_char, true, 7);
|
||||||
$msg = $msgarr["text"];
|
$msg = $msgarr["text"];
|
||||||
|
|
||||||
if (($msg == "") AND isset($msgarr["title"]))
|
if (($msg == "") AND isset($msgarr["title"]))
|
||||||
|
@ -709,7 +709,7 @@ function statusnet_prepare_body(&$a,&$b) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$msgarr = plaintext($a, $item, $max_char, true);
|
$msgarr = plaintext($a, $item, $max_char, true, 7);
|
||||||
$msg = $msgarr["text"];
|
$msg = $msgarr["text"];
|
||||||
|
|
||||||
if (isset($msgarr["url"]))
|
if (isset($msgarr["url"]))
|
||||||
|
|
|
@ -464,7 +464,7 @@ function twitter_post_hook(&$a,&$b) {
|
||||||
|
|
||||||
$max_char = 140;
|
$max_char = 140;
|
||||||
require_once("include/plaintext.php");
|
require_once("include/plaintext.php");
|
||||||
$msgarr = plaintext($a, $b, $max_char, true);
|
$msgarr = plaintext($a, $b, $max_char, true, 8);
|
||||||
$msg = $msgarr["text"];
|
$msg = $msgarr["text"];
|
||||||
|
|
||||||
if (($msg == "") AND isset($msgarr["title"]))
|
if (($msg == "") AND isset($msgarr["title"]))
|
||||||
|
@ -680,7 +680,7 @@ function twitter_prepare_body(&$a,&$b) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$msgarr = plaintext($a, $item, $max_char, true);
|
$msgarr = plaintext($a, $item, $max_char, true, 8);
|
||||||
$msg = $msgarr["text"];
|
$msg = $msgarr["text"];
|
||||||
|
|
||||||
if (isset($msgarr["url"]))
|
if (isset($msgarr["url"]))
|
||||||
|
|
Loading…
Reference in New Issue