fix forbidden photos and vcard photo template

This commit is contained in:
friendica 2013-11-12 19:25:23 -08:00
parent c803f620e6
commit be7e732391
2 changed files with 5 additions and 4 deletions

View File

@ -117,12 +117,13 @@ function photo_init(&$a) {
dbesc($photo),
intval($resolution)
);
if($r) {
logger('mod_photo: forbidden. ' . $a->query_string());
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';
$mimetype = 'image/png';
$prvcachecontrol = true;
}
}

View File

@ -1,6 +1,6 @@
<div class="vcard">
<div class="fn">{{$name}}</div>
<div id="profile-photo-wrapper"><img class="vcard-photo photo" src="{{$photo}}" alt="name" /></div>
<div id="profile-photo-wrapper"><img class="vcard-photo photo" src="{{$photo}}" alt="{{name}}" /></div>
</div>