diff --git a/src/Content/Text/BBCode.php b/src/Content/Text/BBCode.php index ddfacf1603..e49b14f47c 100644 --- a/src/Content/Text/BBCode.php +++ b/src/Content/Text/BBCode.php @@ -950,15 +950,19 @@ class BBCode extends BaseObject $text = ($is_quote_share? '
' : '') . '

' . html_entity_decode('♲ ', ENT_QUOTES, 'UTF-8') . ' ' . $author_contact['addr'] . ':

' . "\n" . $content; break; case 3: // Diaspora - $headline = '

' . html_entity_decode('♲ ', ENT_QUOTES, 'UTF-8') . $mention . ':

' . "\n"; - if (stripos(Strings::normaliseLink($attributes['link']), 'http://twitter.com/') === 0) { $text = ($is_quote_share? '
' : '') . '

' . $attributes['link'] . '

' . "\n"; } else { + $headline = '

' . $attributes['author'] . ':

' . "\n"; + + if (!empty($attributes['posted']) && !empty($attributes['link'])) { + $headline = '

' . $attributes['author'] . ' - ' . $attributes['posted'] . ' GMT

' . "\n"; + } + $text = ($is_quote_share? '
' : '') . $headline . '
' . trim($content) . '
' . "\n"; - if ($attributes['link'] != '') { - $text .= '

[l]

' . "\n"; + if (empty($attributes['posted']) && !empty($attributes['link'])) { + $text .= '

[Source]

' . "\n"; } }