forked from friendica/friendica-addons
Fix notice in Twitter addon
This commit is contained in:
parent
3492cdb077
commit
e2c7578734
|
@ -630,7 +630,7 @@ function twitter_post_hook(App $a, array &$b)
|
|||
$msg = Plaintext::shorten($msgarr["title"], $max_char - 50);
|
||||
}
|
||||
|
||||
if (($msgarr['url'] == $b['plink']) && !empty($msgarr['images']) && (count($msgarr['images']) <= 4)) {
|
||||
if (!empty($msgarr['url']) && ($msgarr['url'] == $b['plink']) && !empty($msgarr['images']) && (count($msgarr['images']) <= 4)) {
|
||||
$url_added = false;
|
||||
} elseif (isset($msgarr["url"]) && ($msgarr["type"] != "photo")) {
|
||||
$msg .= "\n" . $msgarr["url"];
|
||||
|
|
Loading…
Reference in a new issue