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