From 949e99798e16e8920dec472d5e595fa4ce38f365 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 13 Mar 2024 23:36:26 -0600 Subject: [PATCH] Update UserObserver, fix type casting --- app/Observers/UserObserver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Observers/UserObserver.php b/app/Observers/UserObserver.php index d587bd7e..2b5d4611 100644 --- a/app/Observers/UserObserver.php +++ b/app/Observers/UserObserver.php @@ -107,7 +107,7 @@ class UserObserver CreateAvatar::dispatch($profile); }); - if(config_cache('account.autofollow') == true) { + if((bool) config_cache('account.autofollow') == true) { $names = config_cache('account.autofollow_usernames'); $names = explode(',', $names);