bb2diaspora_itemwallwall not finding author elements - inserting empty bbcode
This commit is contained in:
parent
5042847334
commit
b2fe2b067a
@ -266,6 +266,10 @@ function bb2dmention_callback($match) {
|
|||||||
function bb2diaspora_itemwallwall(&$item) {
|
function bb2diaspora_itemwallwall(&$item) {
|
||||||
|
|
||||||
if(($item['mid'] == $item['parent_mid']) && ($item['author_xchan'] != $item['owner_xchan']) && (is_array($item['author']))) {
|
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);
|
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.
|
// post will come across with the owner's identity. Throw a preamble onto the post to indicate the true author.
|
||||||
$item['body'] = "\n\n"
|
$item['body'] = "\n\n"
|
||||||
|
Reference in New Issue
Block a user