]> git.mxchange.org Git - friendica.git/commitdiff
dont insert images larger than scale level 2
authorZach Prezkuta <fermion@gmx.com>
Mon, 17 Sep 2012 01:07:12 +0000 (19:07 -0600)
committerZach Prezkuta <fermion@gmx.com>
Mon, 17 Sep 2012 01:07:12 +0000 (19:07 -0600)
mod/fbrowser.php

index 3f034226e15084e8947d3ca7db4409782041b3ef..e030e39483b855247b2c96bf3843f7c955e14b5b 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 $sql_extra
+                                       FROM `photo` WHERE `uid` = %d AND scale > 1 $sql_extra
                                        GROUP BY `resource-id` $sql_extra2",
                                intval(local_user())                                    
                        );