aboutsummaryrefslogtreecommitdiffstats
path: root/mod/photo.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-06-15 23:37:51 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-06-15 23:37:51 -0700
commitbc72d3fd2659326e223120c337a59090d97985fe (patch)
treeabed1839e297d4a65fed776320115ba91c2dfc41 /mod/photo.php
parentbdedda7c6b4bf85b5fae151e6d93efe3f01dffa3 (diff)
downloadvolse-hubzilla-bc72d3fd2659326e223120c337a59090d97985fe.tar.gz
volse-hubzilla-bc72d3fd2659326e223120c337a59090d97985fe.tar.bz2
volse-hubzilla-bc72d3fd2659326e223120c337a59090d97985fe.zip
move profile photos to new methods
Diffstat (limited to 'mod/photo.php')
-rw-r--r--mod/photo.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/photo.php b/mod/photo.php
index f757372bf..e6d21562d 100644
--- a/mod/photo.php
+++ b/mod/photo.php
@@ -61,9 +61,10 @@ function photo_init(&$a) {
$uid = $person;
- $r = q("SELECT * FROM photo WHERE scale = %d AND uid = %d AND profile = 1 LIMIT 1",
+ $r = q("SELECT * FROM photo WHERE scale = %d AND uid = %d AND photo_usage = %d LIMIT 1",
intval($resolution),
- intval($uid)
+ intval($uid),
+ intval(PHOTO_PROFILE)
);
if(count($r)) {
$data = dbunescbin($r[0]['data']);