mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-12-22 18:30:19 +00:00
Merge pull request #888 from annando/twitter-notice
Fix notice in Twitter addon
This commit is contained in:
commit
c675cd4cb2
1 changed files with 1 additions and 1 deletions
|
@ -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