mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-12 19:38:49 +00:00
Fix unused code in buffer, statusnet and twitter
- Remove unused argument in plaintext()
This commit is contained in:
parent
2cbf89c0f5
commit
ba96796363
3 changed files with 10 additions and 9 deletions
|
@ -523,7 +523,7 @@ function twitter_post_hook(App $a, &$b)
|
|||
|
||||
$max_char = 280;
|
||||
require_once "include/plaintext.php";
|
||||
$msgarr = plaintext($a, $b, $max_char, true, 8);
|
||||
$msgarr = plaintext($b, $max_char, true, 8);
|
||||
$msg = $msgarr["text"];
|
||||
|
||||
if (($msg == "") && isset($msgarr["title"])) {
|
||||
|
@ -592,7 +592,7 @@ function twitter_post_hook(App $a, &$b)
|
|||
// -----------------
|
||||
$max_char = 280;
|
||||
require_once "include/plaintext.php";
|
||||
$msgarr = plaintext($a, $b, $max_char, true, 8);
|
||||
$msgarr = plaintext($b, $max_char, true, 8);
|
||||
$msg = $msgarr["text"];
|
||||
|
||||
if (($msg == "") && isset($msgarr["title"])) {
|
||||
|
@ -789,7 +789,7 @@ function twitter_prepare_body(App $a, &$b)
|
|||
}
|
||||
}
|
||||
|
||||
$msgarr = plaintext($a, $item, $max_char, true, 8);
|
||||
$msgarr = plaintext($item, $max_char, true, 8);
|
||||
$msg = $msgarr["text"];
|
||||
|
||||
if (isset($msgarr["url"]) && ($msgarr["type"] != "photo")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue