From 4bd179df0295e9cc3bab121335fa7ee2eb7a931d Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sat, 27 Apr 2019 23:55:16 +0200 Subject: [PATCH] Fix approved column being set to nil instead of false (#10642) Fix https://github.com/tootsuite/mastodon/pull/10621#issuecomment-487316619 --- app/models/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user.rb b/app/models/user.rb index 9a067100624178..c42f6ad8d853c9 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -282,7 +282,7 @@ def open_registrations? end def external? - @external + !!@external end def sanitize_languages