aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-10-10 15:04:57 -0700
committerMario Vavti <mario@mariovavti.com>2016-10-11 10:19:32 +0200
commit2bd61aed7ae11527c13f0e2589ed534155e67c71 (patch)
tree81d9c2d11e8d722572088a61b5b890889f4e361e
parent81e704648f51b71f2f6f28a54b0ade2ae718dd35 (diff)
downloadvolse-hubzilla-2bd61aed7ae11527c13f0e2589ed534155e67c71.tar.gz
volse-hubzilla-2bd61aed7ae11527c13f0e2589ed534155e67c71.tar.bz2
volse-hubzilla-2bd61aed7ae11527c13f0e2589ed534155e67c71.zip
spaghetti
-rw-r--r--include/bb2diaspora.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/bb2diaspora.php b/include/bb2diaspora.php
index 16f67dc4a..52b944cc4 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,$uplink = false) {
// We will provide wallwall (embedded author on the Diaspora side) if
// 1. It is a wall-to-wall post
@@ -302,6 +302,9 @@ function bb2diaspora_itemwallwall(&$item) {
}
}
+ if($uplink)
+ $wallwall = true;
+
if(($wallwall) && (is_array($item['author'])) && $item['author']['xchan_url'] && $item['author']['xchan_name'] && $item['author']['xchan_photo_s']) {
logger('bb2diaspora_itemwallwall: wall to wall post',LOGGER_DEBUG);
// post will come across with the owner's identity. Throw a preamble onto the post to indicate the true author.
@@ -318,7 +321,7 @@ function bb2diaspora_itemwallwall(&$item) {
}
-function bb2diaspora_itembody($item, $force_update = false, $have_channel = false) {
+function bb2diaspora_itembody($item, $force_update = false, $have_channel = false, $uplink) {
if(! get_iconfig($item,'diaspora','fields')) {
@@ -362,7 +365,7 @@ function bb2diaspora_itembody($item, $force_update = false, $have_channel = fals
}
if(! $have_channel)
- bb2diaspora_itemwallwall($newitem);
+ bb2diaspora_itemwallwall($newitem,$uplink);
$title = $newitem['title'];
$body = preg_replace('/\#\^http/i', 'http', $newitem['body']);