about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-05-16 14:46:17 -0500
committermultiple creatures <dev@multiple-creature.party>2019-05-21 03:16:23 -0500
commit506d2e9cf05bf9c2f927d581f52e1e268b724092 (patch)
tree098b8ab8cf2ddae230c5d26feca7d6fd275f173f /app/models
parente58efb85285fdc562edc4bcb8ec9f9f5d451ba2b (diff)
add option to embiggen the emojos & embiggen small bbcode text on hover
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 163e0161e..d939909eb 100644
--- a/app/models/account.rb
+++ b/app/models/account.rb
@@ -150,6 +150,7 @@ class Account < ApplicationRecord
            :wants_larger_menus?,
            :wants_larger_buttons?,
            :wants_larger_drawer?,
+           :wants_larger_emoji?,
            :hides_filtered_gap?,
            :hides_mascot?,
            :hides_color_formatting?,
diff --git a/app/models/user.rb b/app/models/user.rb
index 7f2892b00..5f1ffb595 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -111,6 +111,7 @@ class User < ApplicationRecord
     :larger_menus,
     :larger_buttons,
     :larger_drawer,
+    :larger_emoji,
     :remove_filtered,
     :hide_replies_muted,
     :hide_replies_blocked,
@@ -237,6 +238,10 @@ class User < ApplicationRecord
     @wants_larger_drawer ||= (settings.larger_drawer || false)
   end
 
+  def wants_larger_emoji?
+    @wants_larger_emoji ||= (settings.larger_emoji || false)
+  end
+
   def hides_filtered_gap?
     @hides_filtered_gap ||= (settings.remove_filtered || false)
   end