From ee2a97fa5cd2f509d2659db34d4c36aa76ea067f Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 12 Jul 2021 14:10:38 +0000 Subject: [PATCH] Support for simple shortening --- statusnet/statusnet.php | 2 +- twitter/twitter.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/statusnet/statusnet.php b/statusnet/statusnet.php index bb51e24b..6f4c3e20 100644 --- a/statusnet/statusnet.php +++ b/statusnet/statusnet.php @@ -583,7 +583,7 @@ function statusnet_post_hook(App $a, &$b) $msg = $msgarr["text"]; if (($msg == "") && isset($msgarr["title"])) - $msg = Plaintext::shorten($msgarr["title"], $max_char - 50); + $msg = Plaintext::shorten($msgarr["title"], $max_char - 50, $b['uid']); $image = ""; diff --git a/twitter/twitter.php b/twitter/twitter.php index e972d692..8bc5940c 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -674,7 +674,7 @@ function twitter_post_hook(App $a, array &$b) $msg = $msgarr["text"]; if (($msg == "") && isset($msgarr["title"])) { - $msg = Plaintext::shorten($msgarr["title"], $max_char - 50); + $msg = Plaintext::shorten($msgarr["title"], $max_char - 50, $b['uid']); } // Add the link to the body if the type isn't a photo or there are more than 4 images in the post -- 2.39.5