From: Zvi ben Yaakov (a.k.a rdc) Date: Sun, 17 Jun 2012 20:59:29 +0000 (+0300) Subject: Enabled Profile photo revisions to be displayed on /photos page X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=edc68f487607a5a7c8602a7e51ee5559acb82114;p=friendica.git Enabled Profile photo revisions to be displayed on /photos page --- diff --git a/mod/photos.php b/mod/photos.php index efeab8fa3c..a6552994e5 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -16,7 +16,7 @@ function photos_init(&$a) { if($a->argc > 1) { $nick = $a->argv[1]; - $r = q("SELECT * FROM `user` WHERE `nickname` = '%s' AND `blocked` = 0 LIMIT 1", + $r = q("SELECT `user`.*, `contact`.`avatar-date` AS picdate FROM `user` LEFT JOIN `contact` on `contact`.`uid` = `user`.`uid` WHERE `user`.`nickname` = '%s' AND `user`.`blocked` = 0 LIMIT 1", dbesc($nick) ); @@ -36,7 +36,7 @@ function photos_init(&$a) { $o .= '
'; $o .= '
' . $a->data['user']['username'] . '
'; - $o .= '
' . $a->data['user']['username'] . '
'; + $o .= '
' . $a->data['user']['username'] . '
'; $o .= '
'; if(! intval($a->data['user']['hidewall'])) {