diff options
author | friendica <info@friendica.com> | 2014-09-14 19:17:05 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-09-14 19:17:05 -0700 |
commit | b2fe2b067acc126f5138cbfc31a054ab35447498 (patch) | |
tree | fc88ae064f550d142ef1c0103573643f3f353dbf /include | |
parent | 5042847334838ebadf5205bbbb84f809942cfa66 (diff) | |
download | volse-hubzilla-b2fe2b067acc126f5138cbfc31a054ab35447498.tar.gz volse-hubzilla-b2fe2b067acc126f5138cbfc31a054ab35447498.tar.bz2 volse-hubzilla-b2fe2b067acc126f5138cbfc31a054ab35447498.zip |
bb2diaspora_itemwallwall not finding author elements - inserting empty bbcode
Diffstat (limited to 'include')
-rw-r--r-- | include/bb2diaspora.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/bb2diaspora.php b/include/bb2diaspora.php index 9c884926a..d9977d732 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" |