Browse Source

Merge pull request #1176 from annando/1409-diaspora-repeated-twitter-cleanup

1409 diaspora repeated twitter cleanup
pull/1181/head
fabrixxm 7 years ago
parent
commit
da5cbe35aa
  1. 10
      include/bbcode.php

10
include/bbcode.php

@ -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">';

Loading…
Cancel
Save