From 04d9187c7ac63b5af3f63ed8d04e737e5801d0e1 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 31 Mar 2014 15:04:56 -0700 Subject: photo timestamp was missing from main profile photo url which prevents photo changes from being immediately seen there. --- include/identity.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/identity.php') diff --git a/include/identity.php b/include/identity.php index 97c29516c..eb0ba230b 100644 --- a/include/identity.php +++ b/include/identity.php @@ -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 -- cgit v1.2.3