aboutsummaryrefslogtreecommitdiffstats
path: root/mod/photos.php
diff options
context:
space:
mode:
authorTobias Diekershoff <tobias.diekershoff@gmx.net>2011-06-08 07:21:19 +0200
committerTobias Diekershoff <tobias.diekershoff@gmx.net>2011-06-08 07:21:19 +0200
commit9ef5cb1c385e598d16ea78fef7f4207603ea4e79 (patch)
tree657eee7d73a33ff860e64f332e43781b033037cb /mod/photos.php
parente036434b8a2dbd8594c0ac5ac7233f4700e4e475 (diff)
parente2f1540f25cae5b647fbebacac105d03cff17502 (diff)
downloadvolse-hubzilla-9ef5cb1c385e598d16ea78fef7f4207603ea4e79.tar.gz
volse-hubzilla-9ef5cb1c385e598d16ea78fef7f4207603ea4e79.tar.bz2
volse-hubzilla-9ef5cb1c385e598d16ea78fef7f4207603ea4e79.zip
Merge branch 'master' of git://github.com/friendika/friendika
Diffstat (limited to 'mod/photos.php')
-rw-r--r--mod/photos.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/photos.php b/mod/photos.php
index 926b33dbe..f1a2d635c 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -548,13 +548,13 @@ foreach($_FILES AS $key => $val) {
*
* We create a wall item for every photo, but we don't want to
* overwhelm the data stream with a hundred newly uploaded photos.
- * So we will make one photo (the first one uploaded to this album)
+ * So we will make the first photo uploaded to this album in the last several hours
* visible by default, the rest will become visible over time when and if
* they acquire comments, likes, dislikes, and/or tags
*
*/
- $r = q("SELECT * FROM `photo` WHERE `album` = '%s' AND `uid` = %d",
+ $r = q("SELECT * FROM `photo` WHERE `album` = '%s' AND `uid` = %d AND `created` > UTC_TIMESTAMP() - INTERVAL 3 HOUR ",
dbesc($album),
intval($page_owner_uid)
);