From 312e0dcbc813cdeea86e6ad9a0736f32b828c392 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 7 Jan 2019 17:09:00 +0100 Subject: Update bbcode --- include/bbcode.php | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'include/bbcode.php') diff --git a/include/bbcode.php b/include/bbcode.php index 817986da0..7531bd774 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -326,22 +326,11 @@ function bb_ShareAttributes($match) { $auth = is_matrix_url($profile); } - // message_id is never used, do we still need it? - $message_id = ""; - preg_match("/message_id='(.*?)'/ism", $attributes, $matches); - if ($matches[1] != "") - $message_id = $matches[1]; - - if(! $message_id) { - preg_match("/guid='(.*?)'/ism", $attributes, $matches); - if ($matches[1] != "") - $message_id = $matches[1]; - } - + $rnd = mt_rand(); $reldate = '' . datetime_convert('UTC', date_default_timezone_get(), $posted, 'r') . ''; - $headline = '
'; + $headline = '
'; if ($avatar != "") $headline .= '' . $author . ''; @@ -363,7 +352,7 @@ function bb_ShareAttributes($match) { $headline .= '' . $fmt . '
'; - $text = $headline . '
' . trim($match[2]) . '
'; + $text = $headline . '
' . trim($match[2]) . '
'; return $text; } -- cgit v1.2.3