diff options
author | Mario <mario@mariovavti.com> | 2019-01-07 17:09:00 +0100 |
---|---|---|
committer | M. Dent <dentm42@gmail.com> | 2019-01-07 17:09:00 +0100 |
commit | 312e0dcbc813cdeea86e6ad9a0736f32b828c392 (patch) | |
tree | ab3dd786f94c006daba299b846d417d4976925a2 /include/bbcode.php | |
parent | 48821a6da5832b5eb843503121871231f78b1103 (diff) | |
download | volse-hubzilla-312e0dcbc813cdeea86e6ad9a0736f32b828c392.tar.gz volse-hubzilla-312e0dcbc813cdeea86e6ad9a0736f32b828c392.tar.bz2 volse-hubzilla-312e0dcbc813cdeea86e6ad9a0736f32b828c392.zip |
Update bbcode
Diffstat (limited to 'include/bbcode.php')
-rw-r--r-- | include/bbcode.php | 17 |
1 files changed, 3 insertions, 14 deletions
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 = '<span class="autotime" title="' . datetime_convert('UTC', date_default_timezone_get(), $posted, 'c') . '" >' . datetime_convert('UTC', date_default_timezone_get(), $posted, 'r') . '</span>'; - $headline = '<div class="shared_container"> <div class="shared_header">'; + $headline = '<div id="shared_container_' . $rnd . '" class="shared_container"> <div id="shared_header_' . $rnd . '" class="shared_header">'; if ($avatar != "") $headline .= '<a href="' . (($auth) ? zid($profile) : $profile) . '" ><img src="' . $avatar . '" alt="' . $author . '" height="32" width="32" /></a>'; @@ -363,7 +352,7 @@ function bb_ShareAttributes($match) { $headline .= '<span>' . $fmt . '</span></div>'; - $text = $headline . '<div class="reshared-content">' . trim($match[2]) . '</div></div>'; + $text = $headline . '<div id="reshared-content-' . $rnd . '" class="reshared-content">' . trim($match[2]) . '</div></div>'; return $text; } |