Merge pull request #1145 from annando/simple-short

Support for simple shortening
This commit is contained in:
Hypolite Petovan 2021-07-13 21:03:00 -04:00 committed by GitHub
commit 74ea687c2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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 = "";

View file

@ -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