about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-rw-r--r--app/models/account.rb1
-rw-r--r--app/models/user.rb5
2 files changed, 6 insertions, 0 deletions
diff --git a/app/models/account.rb b/app/models/account.rb
index c52f28d33..66fe554d5 100644
--- a/app/models/account.rb
+++ b/app/models/account.rb
@@ -160,6 +160,7 @@ class Account < ApplicationRecord
            :hides_mascot?,
            :hides_captions?,
            :shows_cursor?,
+           :forces_lowercase?,
 
            to: :user,
            prefix: true,
diff --git a/app/models/user.rb b/app/models/user.rb
index 06af06911..e6a37b0bd 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -117,6 +117,7 @@ class User < ApplicationRecord
     :always_local,
     :rawr_federated,
     :hide_stats,
+    :force_lowercase,
     :hide_captions,
     :larger_menus,
     :larger_buttons,
@@ -368,6 +369,10 @@ class User < ApplicationRecord
     @hides_stats ||= (settings.hide_stats || false)
   end
 
+  def forces_lowercase?
+    @force_lowercase ||= (settings.force_lowercase || false)
+  end
+
   def hides_captions?
     @hides_captions ||= (settings.hide_captions || false)
   end