From: Zach Prezkuta Date: Tue, 18 Sep 2012 03:46:36 +0000 (-0600) Subject: select based on dimensions instead of scale level X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cd2557303836a4f3cf595518c159f5d449b776f2;p=friendica.git select based on dimensions instead of scale level --- 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()) );