bbcode: New element "share" for shared content

mail: Now mails connected via subject line if there isn't an appropriate header.
vier: Improvents to the theme so that shared messages are looking fine
This commit is contained in:
Michael Vogel 2012-12-17 03:01:40 +01:00
parent d253d59668
commit 9c0de28622
4 changed files with 110 additions and 8 deletions

View file

@ -155,6 +155,9 @@ function bb2diaspora($Text,$preserve_nl = false, $fordiaspora = true) {
// $Text = preg_replace("/\[url\=([^\[\]]*)\]\s*\[img\](.*?)\[\/img\]\s*\[\/url\]/ism",
// "[url]$1[/url]\n[img]$2[/img]", $Text);
// Remove the avatar picture since that isn't looking good on the other side
//$Text = preg_replace("/\[share(.*?)avatar\s?=\s?'.*?'\s?(.*?)\]\s?(.*?)\s?\[\/share\]\s?/ism","\n[share$1$2]$3[/share]",$Text);
// Convert it to HTML - don't try oembed
$Text = bbcode($Text, $preserve_nl, false);