Explorar o código

Update UserObserver, fix type casting

Daniel Supernault hai 1 ano
pai
achega
949e99798e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Observers/UserObserver.php

+ 1 - 1
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);