From 778ed772d2c4d1a1b1222f2f9bbe98ad9fa67eff Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sat, 27 Sep 2014 23:39:06 +0200 Subject: [PATCH] Diaspora: Repeated items from twitter to Diaspora now only include a link, since Diaspora is showing the whole tweet. --- include/bbcode.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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 = '
';