]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #115 from fabrixxm/tr
authorFriendika <info@friendika.com>
Wed, 8 Jun 2011 00:12:56 +0000 (17:12 -0700)
committerFriendika <info@friendika.com>
Wed, 8 Jun 2011 00:12:56 +0000 (17:12 -0700)
update it strings

boot.php
mod/photos.php

index 12689b4ab0c89d14e6a2cb9da508b2e66683a372..6a5f6364a780b8a88d02f22b3cf95c75cb9eeed9 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -4,7 +4,7 @@ set_time_limit(0);
 ini_set('pcre.backtrack_limit', 250000);
 
 
-define ( 'FRIENDIKA_VERSION',      '2.2.1003' );
+define ( 'FRIENDIKA_VERSION',      '2.2.1004' );
 define ( 'DFRN_PROTOCOL_VERSION',  '2.21'    );
 define ( 'DB_UPDATE_VERSION',      1061      );
 
index 926b33dbe2e923bc593b0d3e0d587656fde2b513..f1a2d635cb158655c269d8cae872dbc9b2bee395 100644 (file)
@@ -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)
        );