]> git.mxchange.org Git - friendica.git/blobdiff - mod/photos.php
Merge pull request #11099 from nupplaphil/feat/session_cache
[friendica.git] / mod / photos.php
index 4d756583159bb4ea72102bb80a8ce33647bf02e4..9b69867461a5d0f069be1f19d4dd8a3fb8875954 100644 (file)
@@ -604,7 +604,7 @@ function photos_post(App $a)
         * they acquire comments, likes, dislikes, and/or tags
         */
 
-       $r = Photo::selectToArray([], ['`album` = ? AND `uid` = ? AND `created` > UTC_TIMESTAMP() - INTERVAL 3 HOUR', $album, $page_owner_uid]);
+       $r = Photo::selectToArray([], ['`album` = ? AND `uid` = ? AND `created` > ?', $album, $page_owner_uid, DateTimeFormat::utc('now - 3 hours')]);
 
        if (!DBA::isResult($r) || ($album == DI::l10n()->t(Photo::PROFILE_PHOTOS))) {
                $visible = 1;