diff --git a/.gitignore b/.gitignore index 7152833590..655df82c09 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ favicon.* .htconfig.php +.htpreconfig.php \#* include/jquery-1.4.2.min.js *.log diff --git a/include/bbcode.php b/include/bbcode.php index 2678344037..686bd41b8e 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -386,22 +386,19 @@ function bb_ShareAttributesDiaspora($match) { if ($matches[1] != "") $profile = $matches[1]; - $posted = ""; -// preg_match("/posted='(.*?)'/ism", $attributes, $matches); -// if ($matches[1] != "") -// $posted = " ".date("Y-m-d H:i", strtotime($matches[1])); -// -// preg_match('/posted="(.*?)"/ism', $attributes, $matches); -// if ($matches[1] != "") -// $posted = " ".date("Y-m-d H:i", strtotime($matches[1])); + $link = ""; + preg_match("/link='(.*?)'/ism", $attributes, $matches); + if ($matches[1] != "") + $link = $matches[1]; + + preg_match('/link="(.*?)"/ism', $attributes, $matches); + if ($matches[1] != "") + $link = $matches[1]; $userid = GetProfileUsername($profile,$author); $headline = '
"; $text = trim($match[1]); @@ -410,7 +407,11 @@ function bb_ShareAttributesDiaspora($match) { $text .= "'.trim($match[3])."