X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fphotos.php;h=fa8a434c44a14382e0eaebca3344298145abdc6f;hb=4016a576d55d2e9b4b3acbe515a73b8c025ef215;hp=4d756583159bb4ea72102bb80a8ce33647bf02e4;hpb=9c61bd3ffca9f08593bc80e48db3bb6fc360cbab;p=friendica.git diff --git a/mod/photos.php b/mod/photos.php index 4d75658315..fa8a434c44 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -1,6 +1,6 @@ t('Permission denied.')); + DI::page()->logRuntime(); exit(); } @@ -166,6 +167,7 @@ function photos_post(App $a) if (!$owner_record) { notice(DI::l10n()->t('Contact information unavailable')); DI::logger()->info('photos_post: unable to locate contact record for page owner. uid=' . $page_owner_uid); + DI::page()->logRuntime(); exit(); } @@ -604,7 +606,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;