mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 23:35:12 +00:00
add more logging
This commit is contained in:
parent
a1f101d1a1
commit
ff794da5f2
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue