]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #4569 from annando/bugfix-diaspora-reshare
authorHypolite Petovan <mrpetovan@gmail.com>
Fri, 9 Mar 2018 20:23:11 +0000 (15:23 -0500)
committerGitHub <noreply@github.com>
Fri, 9 Mar 2018 20:23:11 +0000 (15:23 -0500)
Bugfix: Reshare with added content to Diaspora looked ugly

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;