aboutsummaryrefslogtreecommitdiffstats
path: root/include/bb2diaspora.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-04-19 23:06:43 -0700
committerredmatrix <git@macgirvin.com>2016-04-19 23:06:43 -0700
commit21b0128e9ea53365b5e77955fb0e177b2b513c64 (patch)
tree7cc2eb8acdfc310bfdecfa678f5d23d1013cb62c /include/bb2diaspora.php
parentd07afb54e4a2820017402fa195727828c8769349 (diff)
downloadvolse-hubzilla-21b0128e9ea53365b5e77955fb0e177b2b513c64.tar.gz
volse-hubzilla-21b0128e9ea53365b5e77955fb0e177b2b513c64.tar.bz2
volse-hubzilla-21b0128e9ea53365b5e77955fb0e177b2b513c64.zip
testing dmeta
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']);