瀏覽代碼

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