diff options
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/user.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 3ca019cb9..c14c33567 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -127,6 +127,7 @@ class User < ApplicationRecord :max_public_history, :roar_lifespan, :delayed_roars, + :delayed_for, :auto_play_gif, :default_sensitive, @@ -309,6 +310,10 @@ class User < ApplicationRecord @delayed_roars ||= (settings.delayed_roars || false) end + def delayed_for + @_delayed_for ||= (settings.delayed_for || 60) + end + def defaults_to_local_only? @defaults_to_local_only ||= (settings.default_local || false) end |