aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZvi ben Yaakov (a.k.a rdc) <coderzvi@infosoc.net>2012-06-17 23:24:47 +0300
committerZvi ben Yaakov (a.k.a rdc) <coderzvi@infosoc.net>2012-06-17 23:24:47 +0300
commit1ee22a749e636efbdde2e690c3e0c5f9422cedcd (patch)
tree40ee490a3c58fdf792078eaf2d46ad74a561ec16
parentb0021a4637084e777ae478d34882da947655c7b2 (diff)
downloadvolse-hubzilla-1ee22a749e636efbdde2e690c3e0c5f9422cedcd.tar.gz
volse-hubzilla-1ee22a749e636efbdde2e690c3e0c5f9422cedcd.tar.bz2
volse-hubzilla-1ee22a749e636efbdde2e690c3e0c5f9422cedcd.zip
Enabled Profile photo revisions to be displayed on /profiles page
-rw-r--r--mod/profiles.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/profiles.php b/mod/profiles.php
index 6a8ce9e1e..a8b40c8a5 100644
--- a/mod/profiles.php
+++ b/mod/profiles.php
@@ -635,7 +635,7 @@ function profiles_content(&$a) {
}
else {
- $r = q("SELECT * FROM `profile` WHERE `uid` = %d",
+ $r = q("SELECT `profile`.*, `contact`.`avatar-date` AS picdate FROM `profile` LEFT JOIN `contact` on `contact`.`uid` = `profile`.`uid` WHERE `profile`.`uid` = %d",
local_user());
if(count($r)) {
@@ -652,7 +652,7 @@ function profiles_content(&$a) {
foreach($r as $rr) {
$o .= replace_macros($tpl, array(
- '$photo' => $rr['thumb'],
+ '$photo' => $rr['thumb'] . '?rev=' . urlencode($rr['picdate']),
'$id' => $rr['id'],
'$alt' => t('Profile Image'),
'$profile_name' => $rr['profile-name'],