From: Michael Vogel Date: Sat, 27 Sep 2014 21:39:06 +0000 (+0200) Subject: Diaspora: Repeated items from twitter to Diaspora now only include a link, since... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=778ed772d2c4d1a1b1222f2f9bbe98ad9fa67eff;p=friendica.git Diaspora: Repeated items from twitter to Diaspora now only include a link, since Diaspora is showing the whole tweet. --- diff --git a/include/bbcode.php b/include/bbcode.php index 25d60647f3..8efeabb8bf 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -534,10 +534,14 @@ function bb_ShareAttributes($share, $simplehtml) { if ($text != "") $text .= "
"; - $text .= $headline.'
'.trim($share[3])."

"; + if (substr(normalise_link($link), 0, 19) != "http://twitter.com/") { + $text .= $headline.'
'.trim($share[3])."

"; + + if ($link != "") + $text .= '
[l]'; + } else + $text .= '
'.$link.''; - if ($link != "") - $text .= '
[l]'; break; case 4: $headline = '
';