forked from friendica/friendica-addons
Support for simple shortening
This commit is contained in:
parent
57be32257b
commit
ee2a97fa5c
2 changed files with 2 additions and 2 deletions
|
@ -583,7 +583,7 @@ function statusnet_post_hook(App $a, &$b)
|
||||||
$msg = $msgarr["text"];
|
$msg = $msgarr["text"];
|
||||||
|
|
||||||
if (($msg == "") && isset($msgarr["title"]))
|
if (($msg == "") && isset($msgarr["title"]))
|
||||||
$msg = Plaintext::shorten($msgarr["title"], $max_char - 50);
|
$msg = Plaintext::shorten($msgarr["title"], $max_char - 50, $b['uid']);
|
||||||
|
|
||||||
$image = "";
|
$image = "";
|
||||||
|
|
||||||
|
|
|
@ -674,7 +674,7 @@ function twitter_post_hook(App $a, array &$b)
|
||||||
$msg = $msgarr["text"];
|
$msg = $msgarr["text"];
|
||||||
|
|
||||||
if (($msg == "") && isset($msgarr["title"])) {
|
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
|
// Add the link to the body if the type isn't a photo or there are more than 4 images in the post
|
||||||
|
|
Loading…
Reference in a new issue