about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-04-27 23:55:16 +0200
committerGitHub <noreply@github.com>2019-04-27 23:55:16 +0200
commite18786dec769791d6ecd7f21a89ae97fb00c44cf (patch)
tree3cab138e3eaf9e6a9650c3ad666ff49dfc8f4fb9 /app
parentfba96c808d25d2fc35ec63ee6745a1e55a95d707 (diff)
Fix approved column being set to nil instead of false (#10642)
Fix https://github.com/tootsuite/mastodon/pull/10621#issuecomment-487316619
Diffstat (limited to 'app')
-rw-r--r--app/models/user.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index 9a0671006..c42f6ad8d 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -282,7 +282,7 @@ class User < ApplicationRecord
   end
 
   def external?
-    @external
+    !!@external
   end
 
   def sanitize_languages