aboutsummaryrefslogtreecommitdiffstats
path: root/include/identity.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-03-31 15:04:56 -0700
committerfriendica <info@friendica.com>2014-03-31 15:04:56 -0700
commit04d9187c7ac63b5af3f63ed8d04e737e5801d0e1 (patch)
tree168b80ad6d58beff8cfd4dcbf45de3e2c0d3fc0a /include/identity.php
parent653d7df86df781d50e1bc4b3ed61468563629df2 (diff)
downloadvolse-hubzilla-04d9187c7ac63b5af3f63ed8d04e737e5801d0e1.tar.gz
volse-hubzilla-04d9187c7ac63b5af3f63ed8d04e737e5801d0e1.tar.bz2
volse-hubzilla-04d9187c7ac63b5af3f63ed8d04e737e5801d0e1.zip
photo timestamp was missing from main profile photo url which prevents photo changes from being immediately seen there.
Diffstat (limited to 'include/identity.php')
-rw-r--r--include/identity.php8
1 files changed, 8 insertions, 0 deletions
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