Преглед на файлове

Update UserObserver, fix type casting

Daniel Supernault преди 1 година
родител
ревизия
949e99798e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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);