about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authorblackle <isabelle@blackle-mori.com>2017-04-11 10:10:16 -0400
committerblackle <isabelle@blackle-mori.com>2017-04-11 10:10:16 -0400
commit06444bf050a267da7001c2801480c5fae3e1559e (patch)
tree4dd809131a514dac055bcc7abd038fcbf638669f /app/models
parentf53fb6aa660834074bbbffac5b1fe5ea0cc85edf (diff)
Allow user to disable the boost confirm dialog in preferences
Diffstat (limited to 'app/models')
-rw-r--r--app/models/user.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index bf2916d90..d2aa5d809 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -26,4 +26,8 @@ class User < ApplicationRecord
   def setting_default_privacy
     settings.default_privacy || (account.locked? ? 'private' : 'public')
   end
+
+  def setting_boost_modal
+    settings.boost_modal
+  end
 end