aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-07-28 01:01:19 -0700
committerFriendika <info@friendika.com>2011-07-28 01:01:19 -0700
commitc74f0f0cabc774b1dc1719b2ebc7409179d26ca4 (patch)
tree81e13051f6430eafa31de9e6b0c880dfda96f0cd
parent822fea9d9d6ba55fca712c2067616421320e2e9f (diff)
downloadvolse-hubzilla-c74f0f0cabc774b1dc1719b2ebc7409179d26ca4.tar.gz
volse-hubzilla-c74f0f0cabc774b1dc1719b2ebc7409179d26ca4.tar.bz2
volse-hubzilla-c74f0f0cabc774b1dc1719b2ebc7409179d26ca4.zip
show full size photos for album view even when photo has been used as a profile photo
-rw-r--r--mod/photos.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/photos.php b/mod/photos.php
index 4a72bb680..2941fa32a 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -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']),