From 2641980ac2876bfe66bb24795dbea4d25483616d Mon Sep 17 00:00:00 2001 From: redmatrix Date: Wed, 20 Apr 2016 01:40:09 -0700 Subject: bb2d updates from testing signature changes --- include/bb2diaspora.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'include/bb2diaspora.php') 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']); -- cgit v1.2.3