From cd2557303836a4f3cf595518c159f5d449b776f2 Mon Sep 17 00:00:00 2001 From: Zach Prezkuta Date: Mon, 17 Sep 2012 21:46:36 -0600 Subject: [PATCH] select based on dimensions instead of scale level --- mod/fbrowser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/fbrowser.php b/mod/fbrowser.php index e030e39483..5ee813b4d6 100644 --- a/mod/fbrowser.php +++ b/mod/fbrowser.php @@ -46,7 +46,7 @@ function fbrowser_content($a){ } $r = q("SELECT `resource-id`, `id`, `filename`, type, min(`scale`) AS `hiq`,max(`scale`) AS `loq`, `desc` - FROM `photo` WHERE `uid` = %d AND scale > 1 $sql_extra + FROM `photo` WHERE `uid` = %d AND (height <= 320 AND width <= 320) $sql_extra GROUP BY `resource-id` $sql_extra2", intval(local_user()) ); -- 2.39.5