that's why bb2diaspora_itemwallwall() wasn't doing its thang.
This commit is contained in:
parent
19e8d10b7a
commit
0090cbf84b
@ -269,12 +269,12 @@ function bb2diaspora_itemwallwall(&$item) {
|
||||
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']) {
|
||||
if(($item['mid'] == $item['parent_mid']) && ($item['author_xchan'] != $item['owner_xchan']) && (is_array($item['author'])) && $item['author']['xchan_url'] && $item['author']['xchan_name'] && $item['author']['xchan_photo_m']) {
|
||||
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"
|
||||
. '[img]' . $item['author']['photo']['src'] . '[/img]'
|
||||
. '[url=' . $item['author']['url'] . ']' . $item['author']['name'] . '[/url]' . "\n\n"
|
||||
. '[img]' . $item['author']['xchan_photo_m'] . '[/img]'
|
||||
. '[url=' . $item['author']['xchan_url'] . ']' . $item['author']['xchan_name'] . '[/url]' . "\n\n"
|
||||
. $item['body'];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user