about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-12-10 03:04:05 -0600
committermultiple creatures <dev@multiple-creature.party>2019-12-10 03:04:05 -0600
commit13f49590347dd350c534663c2876ab4db5613aba (patch)
tree7cb9f714d199e6a3bb3de3d5c04f943ec04dc54b /app/models
parent41b0d10e88e02810006657c27b8ea3576646d45e (diff)
add accessibility option to make everything lowercase
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