Update config() to config_cache()
This commit is contained in:
parent
3a9203e039
commit
7895097fc1
6 changed files with 149 additions and 149 deletions
|
@ -522,7 +522,7 @@ class DirectMessageController extends Controller
|
|||
$hidden = false;
|
||||
}
|
||||
|
||||
if(config('pixelfed.enforce_account_limit') == true) {
|
||||
if(config_cache('pixelfed.enforce_account_limit') == true) {
|
||||
$size = Cache::remember($user->storageUsedKey(), now()->addDays(3), function() use($user) {
|
||||
return Media::whereUserId($user->id)->sum('size') / 1000;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue