]> cat aescling's git repositories - mastodon.git/commitdiff
Fix approved column being set to nil instead of false (#10642)
authorEugen Rochko <eugen@zeonfederated.com>
Sat, 27 Apr 2019 21:55:16 +0000 (23:55 +0200)
committerGitHub <noreply@github.com>
Sat, 27 Apr 2019 21:55:16 +0000 (23:55 +0200)
Fix https://github.com/tootsuite/mastodon/pull/10621#issuecomment-487316619

app/models/user.rb

index 9a0671006241785a13aa92a851d26c1c62e1c373..c42f6ad8d853c9a7d47df858f14816a558891534 100644 (file)
@@ -282,7 +282,7 @@ class User < ApplicationRecord
   end
 
   def external?
-    @external
+    !!@external
   end
 
   def sanitize_languages