add more logging

This commit is contained in:
Mike Macgirvin 2024-01-27 08:24:02 +11:00
parent a1f101d1a1
commit ff794da5f2

View file

@ -395,7 +395,12 @@ function post_activity_item($arr, $deliver = true, $channel = null, $observer =
$arr['aid'] = ((isset($arr['aid'])) ? $arr['aid'] : $channel['channel_account_id']);
$arr['uid'] = ((isset($arr['uid'])) ? $arr['uid'] : $channel['channel_id']);
logger('uid: ' . $arr['uid']);
logger('observer_hash: ' . $observer['xchan_hash']);
logger('permission: ' . (($is_comment) ? 'post_comments' : 'post_wall'));
if (! perm_is_allowed($arr['uid'], $observer['xchan_hash'], (($is_comment) ? 'post_comments' : 'post_wall'))) {
logger('permission denied');
$ret['message'] = t('Permission denied');
return $ret;
}