mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 01:43:42 +00:00
Issue 10772: Avoid duplicated links to Twitter
This commit is contained in:
parent
a1c91dbd27
commit
8ed6469fb9
1 changed files with 1 additions and 1 deletions
|
@ -680,7 +680,7 @@ function twitter_post_hook(App $a, array &$b)
|
|||
}
|
||||
|
||||
// Add the link to the body if the type isn't a photo or there are more than 4 images in the post
|
||||
if (!empty($msgarr['url']) && (($msgarr['type'] != 'photo') || empty($msgarr['images']) || (count($msgarr['images']) > 4))) {
|
||||
if ((strpos($msg, $msgarr['url']) === false) && !empty($msgarr['url']) && (($msgarr['type'] != 'photo') || empty($msgarr['images']) || (count($msgarr['images']) > 4))) {
|
||||
$msg .= "\n" . $msgarr['url'];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue