aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/bb2diaspora.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/bb2diaspora.php b/include/bb2diaspora.php
index 98e421670..add580636 100644
--- a/include/bb2diaspora.php
+++ b/include/bb2diaspora.php
@@ -268,7 +268,7 @@ function bb2dmention_callback($match) {
}
-function bb2diaspora_itemwallwall(&$item, $newpost = false) {
+function bb2diaspora_itemwallwall(&$item) {
// We will provide wallwall (embedded author on the Diaspora side) if
// 1. It is a wall-to-wall post
@@ -289,7 +289,7 @@ function bb2diaspora_itemwallwall(&$item, $newpost = false) {
}
$has_meta = false;
- if((! $newpost) && ($item['diaspora_meta'] || get_iconfig($item,'diaspora','fields')))
+ if($item['diaspora_meta'] || get_iconfig($item,'diaspora','fields'))
$has_meta = true;
if($item['author_xchan'] != $item['owner_xchan']) {
@@ -318,7 +318,7 @@ function bb2diaspora_itemwallwall(&$item, $newpost = false) {
}
-function bb2diaspora_itembody($item, $force_update = false, $newpost = false) {
+function bb2diaspora_itembody($item, $force_update = false, $have_channel = false) {
if(! get_iconfig($item,'diaspora','fields')) {
@@ -361,8 +361,8 @@ function bb2diaspora_itembody($item, $force_update = false, $newpost = false) {
}
}
-
- bb2diaspora_itemwallwall($newitem, $newpost);
+ if(! $have_channel)
+ bb2diaspora_itemwallwall($newitem, $newpost);
$title = $newitem['title'];
$body = preg_replace('/\#\^http/i', 'http', $newitem['body']);