mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
Needed changes for a changed core function
This commit is contained in:
parent
37094047a1
commit
4f5390c09e
4 changed files with 10 additions and 10 deletions
|
@ -581,7 +581,7 @@ function statusnet_post_hook(&$a,&$b) {
|
|||
|
||||
$image = "";
|
||||
|
||||
if (isset($msgarr["url"])) {
|
||||
if (isset($msgarr["url"]) AND ($msgarr["type"] != "photo")) {
|
||||
if ((strlen($msgarr["url"]) > 20) AND
|
||||
((strlen($msg." \n".$msgarr["url"]) > $max_char)))
|
||||
$msg .= " \n".short_link($msgarr["url"]);
|
||||
|
@ -738,7 +738,7 @@ function statusnet_prepare_body(&$a,&$b) {
|
|||
$msgarr = plaintext($a, $item, $max_char, true, 7);
|
||||
$msg = $msgarr["text"];
|
||||
|
||||
if (isset($msgarr["url"]))
|
||||
if (isset($msgarr["url"]) AND ($msgarr["type"] != "photo"))
|
||||
$msg .= " ".$msgarr["url"];
|
||||
|
||||
if (isset($msgarr["image"]))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue