]> git.mxchange.org Git - friendica.git/commitdiff
Merge remote-tracking branch 'upstream/master' into 1409-diaspora-repeated-twitter...
authorMichael Vogel <icarus@dabo.de>
Mon, 29 Sep 2014 07:42:47 +0000 (09:42 +0200)
committerMichael Vogel <icarus@dabo.de>
Mon, 29 Sep 2014 07:42:47 +0000 (09:42 +0200)
include/bbcode.php

index 25d60647f32f2c8ea96ca0170eb91ff22fc49bdf..8efeabb8bfa5c19dd2562af96dfd8003349082af 100644 (file)
@@ -534,10 +534,14 @@ function bb_ShareAttributes($share, $simplehtml) {
                        if ($text != "")
                                $text .= "<hr />";
 
-                       $text .= $headline.'<blockquote class="shared_content">'.trim($share[3])."</blockquote><br />";
+                       if (substr(normalise_link($link), 0, 19) != "http://twitter.com/") {
+                               $text .= $headline.'<blockquote class="shared_content">'.trim($share[3])."</blockquote><br />";
+
+                               if ($link != "")
+                                       $text .= '<br /><a href="'.$link.'">[l]</a>';
+                       } else
+                               $text .= '<br /><a href="'.$link.'">'.$link.'</a>';
 
-                       if ($link != "")
-                               $text .= '<br /><a href="'.$link.'">[l]</a>';
                        break;
                case 4:
                        $headline = '<div class="shared_header">';