]> git.mxchange.org Git - friendica.git/commitdiff
show full size photos for album view even when photo has been used as a profile photo
authorFriendika <info@friendika.com>
Thu, 28 Jul 2011 08:01:19 +0000 (01:01 -0700)
committerFriendika <info@friendika.com>
Thu, 28 Jul 2011 08:01:19 +0000 (01:01 -0700)
mod/photos.php

index 4a72bb680789f027d65b80dc15a953a5622dd800..2941fa32a57c6a263a6726a751abb33354dd2daa 100644 (file)
@@ -903,7 +903,7 @@ function photos_content(&$a) {
                $album = hex2bin($datum);
 
                $r = q("SELECT `resource-id`, max(`scale`) AS `scale` FROM `photo` WHERE `uid` = %d AND `album` = '%s' 
-                       $sql_extra GROUP BY `resource-id`",
+                       AND `scale` < 4 $sql_extra GROUP BY `resource-id`",
                        intval($owner_uid),
                        dbesc($album)
                );
@@ -913,7 +913,7 @@ function photos_content(&$a) {
                }
 
                $r = q("SELECT `resource-id`, `id`, `filename`, max(`scale`) AS `scale`, `desc` FROM `photo` WHERE `uid` = %d AND `album` = '%s' 
-                       $sql_extra GROUP BY `resource-id` ORDER BY `created` DESC LIMIT %d , %d",
+                       AND `scale` < 4 $sql_extra GROUP BY `resource-id` ORDER BY `created` DESC LIMIT %d , %d",
                        intval($owner_uid),
                        dbesc($album),
                        intval($a->pager['start']),