diff options
author | Friendika <info@friendika.com> | 2011-06-07 16:23:37 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-06-07 16:23:37 -0700 |
commit | d2863d185997424584c34791ae5fa84db8dd352d (patch) | |
tree | dfe08f74466eef6780d4e24615b3e4a671d257de /mod/photos.php | |
parent | c1b2e90e3720961c280f6378e48fda7bad7c3ad0 (diff) | |
download | volse-hubzilla-d2863d185997424584c34791ae5fa84db8dd352d.tar.gz volse-hubzilla-d2863d185997424584c34791ae5fa84db8dd352d.tar.bz2 volse-hubzilla-d2863d185997424584c34791ae5fa84db8dd352d.zip |
first recently uploaded photo (in 3 hours) to an older existing album, post made visible
Diffstat (limited to 'mod/photos.php')
-rw-r--r-- | mod/photos.php | 4 |
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) ); |