]> git.mxchange.org Git - friendica.git/commitdiff
Bugfix: Reshare with added content to Diaspora looked ugly
authorMichael <heluecht@pirati.ca>
Fri, 9 Mar 2018 20:04:31 +0000 (20:04 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 9 Mar 2018 20:04:31 +0000 (20:04 +0000)
src/Content/Text/BBCode.php

index 8dd9305ca316f263f98503304ef59492b868eaed..091957c197408ae9921be0904b19f0ec81bbba80 100644 (file)
@@ -1123,13 +1123,13 @@ class BBCode
                                }
 
                                if (stripos(normalise_link($link), 'http://twitter.com/') === 0) {
+                                       $text .= '<br /><a href="' . $link . '">' . $link . '</a>';
+                               } else {
                                        $text .= $headline . '<blockquote>' . trim($share[3]) . "</blockquote><br />";
 
                                        if ($link != "") {
                                                $text .= '<br /><a href="' . $link . '">[l]</a>';
                                        }
-                               } else {
-                                       $text .= '<br /><a href="' . $link . '">' . $link . '</a>';
                                }
 
                                break;