photo timestamp was missing from main profile photo url which prevents photo changes from being immediately seen there.

This commit is contained in:
friendica 2014-03-31 15:04:56 -07:00
parent 653d7df86d
commit 04d9187c7a
2 changed files with 9 additions and 1 deletions

View File

@ -547,12 +547,20 @@ function profile_load(&$a, $nickname, $profile = '') {
);
}
if(! $p) {
logger('profile error: ' . $a->query_string, LOGGER_DEBUG);
notice( t('Requested profile is not available.') . EOL );
$a->error = 404;
return;
}
$z = q("select xchan_photo_date from xchan where xchan_hash = '%s' limit 1",
dbesc($p[0]['channel_hash'])
);
if($z)
$p[0]['picdate'] = $z[0]['xchan_photo_date'];
// fetch user tags if this isn't the default profile

View File

@ -1 +1 @@
2014-03-30.632
2014-03-31.633