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