Update config() to config_cache()
This commit is contained in:
parent
f4fc8347c9
commit
3a9203e039
4 changed files with 5 additions and 5 deletions
|
@ -96,7 +96,7 @@ class ComposeController extends Controller
|
|||
$size = Cache::remember($user->storageUsedKey(), now()->addDays(3), function() use($user) {
|
||||
return Media::whereUserId($user->id)->sum('size') / 1000;
|
||||
});
|
||||
$limit = (int) config('pixelfed.max_account_size');
|
||||
$limit = (int) config_cache('pixelfed.max_account_size');
|
||||
if ($size >= $limit) {
|
||||
abort(403, 'Account size limit reached.');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue