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
|
@ -475,7 +475,7 @@ function twitter_post_hook(&$a,&$b) {
|
|||
|
||||
$image = "";
|
||||
|
||||
if (isset($msgarr["url"]))
|
||||
if (isset($msgarr["url"]) AND ($msgarr["type"] != "photo"))
|
||||
$msg .= "\n".$msgarr["url"];
|
||||
elseif (isset($msgarr["image"]) AND ($msgarr["type"] != "video"))
|
||||
$image = $msgarr["image"];
|
||||
|
@ -707,7 +707,7 @@ function twitter_prepare_body(&$a,&$b) {
|
|||
$msgarr = plaintext($a, $item, $max_char, true, 8);
|
||||
$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