about summary refs log tree commit diff
path: root/app/models/account.rb
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-05-10 05:55:03 -0500
committermultiple creatures <dev@multiple-creature.party>2019-05-21 03:16:23 -0500
commit47a251048c7b236a667195591a0db02b9e0f6745 (patch)
treefdaf8aa8de65a3b92d1bf3eb589b26e44a7f5dda /app/models/account.rb
parent8d122422167784883a87a0461d098d885dd3599d (diff)
Expose user settings to `Account` model and update code referencing those settings.
Diffstat (limited to 'app/models/account.rb')
-rw-r--r--app/models/account.rb41
1 files changed, 30 insertions, 11 deletions
diff --git a/app/models/account.rb b/app/models/account.rb
index 5f88a951f..704e5bcc7 100644
--- a/app/models/account.rb
+++ b/app/models/account.rb
@@ -123,19 +123,38 @@ class Account < ApplicationRecord
            :moderator?,
            :staff?,
            :locale,
-           :default_sensitive?,
+
+           :default_language,
+           :default_visibility,
+
+           :defaults_to_sensitive?,
+           :defaults_to_local_only?,
+           :always_local_only?,
+
+           :hides_interactions?,
            :hides_network?,
+           :hides_stats?,
            :shows_application?,
-           :always_local?,
-           :default_local?,
-           :no_blabber_blocks?,
-           :hide_replies_of_muted?,
-           :hide_replies_of_blocked?,
-           :hide_replies_of_blocker?,
-           :hide_mntions_of_muted?,
-           :hide_mntions_of_blocked?,
-           :hide_mntions_of_blocker?,
-           :hide_mntions_of_outside_scope?,
+
+           :gentlies_kobolds?,
+           :is_a_kobold?,
+
+           :hides_replies_of_muted?,
+           :hides_replies_of_blocked?,
+           :hides_replies_of_blocker?,
+           :hides_mentions_of_muted?,
+           :hides_mentions_of_blocked?,
+           :hides_mentions_of_blocker?,
+           :hides_mentions_outside_scope?,
+
+           :wants_larger_menus?,
+           :wants_larger_buttons?,
+           :wants_larger_drawer?,
+           :hides_filtered_gap?,
+           :hides_mascot?,
+           :hides_color_formatting?,
+           :hides_captions,
+
            to: :user,
            prefix: true,
            allow_nil: true