X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FPhoto.php;h=a9b4c0fb736fd139957518921de46f03cac308d5;hb=4894e89f036be1f8a82523ac69d56ae36e7685df;hp=9abd73e762ba27933fb0ebb45592c98b97768a7d;hpb=05be2db72516ac17dc6b9cccaa6fee458501df53;p=friendica.git diff --git a/src/Model/Photo.php b/src/Model/Photo.php index 9abd73e762..a9b4c0fb73 100644 --- a/src/Model/Photo.php +++ b/src/Model/Photo.php @@ -115,7 +115,7 @@ class Photo $type = Image::guessType($image_url, true); $Image = new Image($img_str, $type); if ($Image->isValid()) { - $Image->scaleToSquare(175); + $Image->scaleToSquare(300); $r = self::store($Image, $uid, $cid, $hash, $filename, 'Contact Photos', 4); @@ -172,7 +172,7 @@ class Photo } if ($photo_failure) { - $image_url = System::baseUrl() . '/images/person-175.jpg'; + $image_url = System::baseUrl() . '/images/person-300.jpg'; $thumb = System::baseUrl() . '/images/person-80.jpg'; $micro = System::baseUrl() . '/images/person-48.jpg'; } @@ -227,7 +227,7 @@ class Photo */ public static function getAlbums($uid, $update = false) { - $sql_extra = Security::permissions_sql($uid); + $sql_extra = Security::getPermissionsSQLByUserId($uid); $key = "photo_albums:".$uid.":".local_user().":".remote_user(); $albums = Cache::get($key); @@ -253,7 +253,7 @@ class Photo DBA::escape(L10n::t('Contact Photos')) ); } - Cache::set($key, $albums, CACHE_DAY); + Cache::set($key, $albums, Cache::DAY); } return $albums; } @@ -265,7 +265,7 @@ class Photo public static function clearAlbumCache($uid) { $key = "photo_albums:".$uid.":".local_user().":".remote_user(); - Cache::set($key, null, CACHE_DAY); + Cache::set($key, null, Cache::DAY); } /**