]> git.mxchange.org Git - friendica-addons.git/commitdiff
Twitter/Statusnet: Use "RD" and "RT" for repeated messages.
authorMichael Vogel <icarus@dabo.de>
Wed, 9 Jul 2014 21:35:28 +0000 (23:35 +0200)
committerMichael Vogel <icarus@dabo.de>
Wed, 9 Jul 2014 21:35:28 +0000 (23:35 +0200)
statusnet/statusnet.php
twitter/twitter.php

index d03117de994a00a7d1bf247d4f9068fad525511f..2e68ae8963feedb27177865eea975a8c777f5853 100644 (file)
@@ -555,7 +555,7 @@ function statusnet_post_hook(&$a,&$b) {
                $tempfile = "";
                require_once("include/plaintext.php");
                require_once("include/network.php");
-               $msgarr = plaintext($a, $b, $max_char, true);
+               $msgarr = plaintext($a, $b, $max_char, true, 7);
                $msg = $msgarr["text"];
 
                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"];
 
                 if (isset($msgarr["url"]))
index 03bafbaafdb30137a2954ce713a29602cf6731e9..c332f7be8102bcd7971f45782e6d872a8631a8a5 100644 (file)
@@ -464,7 +464,7 @@ function twitter_post_hook(&$a,&$b) {
 
                $max_char = 140;
                require_once("include/plaintext.php");
-               $msgarr = plaintext($a, $b, $max_char, true);
+               $msgarr = plaintext($a, $b, $max_char, true, 8);
                $msg = $msgarr["text"];
 
                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"];
 
                if (isset($msgarr["url"]))