diff --git a/include/bb2diaspora.php b/include/bb2diaspora.php
index 34c932f74..69a87b381 100644
--- a/include/bb2diaspora.php
+++ b/include/bb2diaspora.php
@@ -34,6 +34,15 @@ function diaspora2bb($s) {
$s = str_replace('#','#',$s);
+ $search = array(" \n", "\n ");
+ $replace = array("\n", "\n");
+ do {
+ $oldtext = $s;
+ $s = str_replace($search, $replace, $s);
+ } while ($oldtext != $s);
+
+ $s = str_replace("\n\n", "
", $s);
+
$s = html2bbcode($s);
// protect the recycle symbol from turning into a tag, but without unescaping angles and naked ampersands
diff --git a/include/bbcode.php b/include/bbcode.php
index 6c5a400dd..e872d859c 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -887,8 +887,12 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true, $simplehtml = fal
$MAILSearchString = $URLSearchString;
// Remove all hashtag addresses
- if ((!$tryoembed OR $simplehtml) AND ($simplehtml != 7))
+ if ((!$tryoembed OR $simplehtml) AND !in_array($simplehtml, array(3, 7)))
$Text = preg_replace("/([#@])\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism", '$1$3', $Text);
+ elseif ($simplehtml == 3)
+ $Text = preg_replace("/([@])\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism",
+ '$1$3',
+ $Text);
elseif ($simplehtml == 7)
$Text = preg_replace("/([@])\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism",
'$1$3',
diff --git a/include/diaspora.php b/include/diaspora.php
index b70cffdc3..534e2541c 100755
--- a/include/diaspora.php
+++ b/include/diaspora.php
@@ -1,5 +1,10 @@
$body_e,
'text' => $text_e,
'id' => $this->get_id(),
- 'guid' => $item['guid'],
+ 'guid' => urlencode($item['guid']),
'linktitle' => sprintf( t('View %s\'s profile @ %s'), $profile_name, ((strlen($item['author-link'])) ? $item['author-link'] : $item['url'])),
'olinktitle' => sprintf( t('View %s\'s profile @ %s'), $this->get_owner_name(), ((strlen($item['owner-link'])) ? $item['owner-link'] : $item['url'])),
'to' => t('to'),
diff --git a/view/theme/vier/style.css b/view/theme/vier/style.css
index 64edef301..79309e338 100644
--- a/view/theme/vier/style.css
+++ b/view/theme/vier/style.css
@@ -1216,6 +1216,7 @@ section.minimal {
.wall-item-container .wall-item-content img {
max-width: 100%;
+ vertical-align: middle;
/* max-width: 650px; */
/* max-width: 580px; */
}