瀏覽代碼

Fix approved column being set to nil instead of false (#10642)

Fix https://github.com/tootsuite/mastodon/pull/10621#issuecomment-487316619
Eugen Rochko 5 年之前
父節點
當前提交
e18786dec7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/models/user.rb

+ 1 - 1
app/models/user.rb

@@ -282,7 +282,7 @@ class User < ApplicationRecord
   end
 
   def external?
-    @external
+    !!@external
   end
 
   def sanitize_languages