log forbidden photos with complete URL and observer webbie (if available).
This commit is contained in:
parent
a2738389ed
commit
e9d899f737
@ -118,6 +118,9 @@ function photo_init(&$a) {
|
||||
intval($resolution)
|
||||
);
|
||||
if($r) {
|
||||
logger('mod_photo: forbidden. ' . $a->query_string());
|
||||
$observer = $a->get_observer();
|
||||
logger('mod_photo: observer = ' . (($observer) ? $observer['xchan_addr'] : '(not authenticated)'));
|
||||
$data = file_get_contents('images/nosign.png');
|
||||
$mimetype = 'image/jpeg';
|
||||
$prvcachecontrol = true;
|
||||
|
Reference in New Issue
Block a user