photo timestamp was missing from main profile photo url which prevents photo changes from being immediately seen there.
This commit is contained in:
parent
653d7df86d
commit
04d9187c7a
@ -547,6 +547,7 @@ function profile_load(&$a, $nickname, $profile = '') {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if(! $p) {
|
if(! $p) {
|
||||||
logger('profile error: ' . $a->query_string, LOGGER_DEBUG);
|
logger('profile error: ' . $a->query_string, LOGGER_DEBUG);
|
||||||
notice( t('Requested profile is not available.') . EOL );
|
notice( t('Requested profile is not available.') . EOL );
|
||||||
@ -554,6 +555,13 @@ function profile_load(&$a, $nickname, $profile = '') {
|
|||||||
return;
|
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
|
// fetch user tags if this isn't the default profile
|
||||||
|
|
||||||
if(! $p[0]['is_default']) {
|
if(! $p[0]['is_default']) {
|
||||||
|
@ -1 +1 @@
|
|||||||
2014-03-30.632
|
2014-03-31.633
|
||||||
|
Reference in New Issue
Block a user