]> git.mxchange.org Git - friendica.git/commitdiff
select based on dimensions instead of scale level
authorZach Prezkuta <fermion@gmx.com>
Tue, 18 Sep 2012 03:46:36 +0000 (21:46 -0600)
committerZach Prezkuta <fermion@gmx.com>
Tue, 18 Sep 2012 03:46:36 +0000 (21:46 -0600)
mod/fbrowser.php

index e030e39483b855247b2c96bf3843f7c955e14b5b..5ee813b4d68f1dc6e5efe66325eb251047e40561 100644 (file)
@@ -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())                                    
                        );