aboutsummaryrefslogtreecommitdiffstats
path: root/include/bb2diaspora.php
diff options
context:
space:
mode:
authorPaolo Tacconi <p.tacconi@giunti.it>2014-09-15 10:01:25 +0200
committerPaolo Tacconi <p.tacconi@giunti.it>2014-09-15 10:01:25 +0200
commit4f793069bf4aafcfe77d50e47690173104ef23c7 (patch)
tree7fe1bfcb18672300bf14967338690ea4fa51e640 /include/bb2diaspora.php
parented7f3001c1c1deec5076ae12114e5c42865b6251 (diff)
parent58aad83e5cb0edaf1ccc543147030e782c5e7ba9 (diff)
downloadvolse-hubzilla-4f793069bf4aafcfe77d50e47690173104ef23c7.tar.gz
volse-hubzilla-4f793069bf4aafcfe77d50e47690173104ef23c7.tar.bz2
volse-hubzilla-4f793069bf4aafcfe77d50e47690173104ef23c7.zip
Merge branch 'master' of https://github.com/friendica/red
Diffstat (limited to 'include/bb2diaspora.php')
-rw-r--r--include/bb2diaspora.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/bb2diaspora.php b/include/bb2diaspora.php
index 9c884926a..846725639 100644
--- a/include/bb2diaspora.php
+++ b/include/bb2diaspora.php
@@ -266,6 +266,10 @@ function bb2dmention_callback($match) {
function bb2diaspora_itemwallwall(&$item) {
if(($item['mid'] == $item['parent_mid']) && ($item['author_xchan'] != $item['owner_xchan']) && (is_array($item['author']))) {
+ logger('bb2diaspora_itemwallwall: author: ' . print_r($item['author'],true), LOGGER_DEBUG);
+ }
+
+ if(($item['mid'] == $item['parent_mid']) && ($item['author_xchan'] != $item['owner_xchan']) && (is_array($item['author'])) && $item['author']['url'] && $item['author']['name'] && $item['author']['photo']['src']) {
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.
$item['body'] = "\n\n"
@@ -292,7 +296,8 @@ function bb2diaspora_itembody($item) {
logger('bb2diaspora_itembody: cached ');
$newitem = $item;
$newitem['body'] = $meta['body'];
- bb2diaspora_itemwallwall($newitem);
+// this won't work - the post is now in markdown
+// bb2diaspora_itemwallwall($newitem);
return $newitem['body'];
}
}