From d9073f132b041fae818ae3894503065de123f257 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sun, 21 Jul 2019 19:51:07 -0500 Subject: add more options for time range of roars visible to anonymous public profile viewers --- app/models/user.rb | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) (limited to 'app/models/user.rb') diff --git a/app/models/user.rb b/app/models/user.rb index b8151e7ed..eeefce075 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -107,7 +107,6 @@ class User < ApplicationRecord :always_local, :rawr_federated, :hide_stats, - :disable_color, :hide_captions, :larger_menus, :larger_buttons, @@ -121,10 +120,9 @@ class User < ApplicationRecord :hide_mntions_blocked, :hide_mntions_blocker, :hide_mntions_packm8, - :gently_kobolds, - :user_is_kobold, :hide_mascot, :hide_interactions, + :max_public_history, :auto_play_gif, :default_sensitive, @@ -279,14 +277,6 @@ class User < ApplicationRecord @hides_mentions_outside_scope ||= (settings.hide_mntions_packm8 || true) end - def gentlies_kobolds? - @gentlies_kobolds ||= (settings.gently_kobolds || false) - end - - def is_a_kobold? - @is_a_kobold ||= (settings.user_is_kobold || false) - end - def hides_mascot? @hides_mascot ||= (settings.hide_mascot || false) end @@ -295,6 +285,10 @@ class User < ApplicationRecord @hides_interactions ||= (settings.hide_interactions || false) end + def max_public_history + @_max_public_history ||= (settings.max_public_history || 6) + end + def defaults_to_local_only? @defaults_to_local_only ||= (settings.default_local || false) end @@ -307,10 +301,6 @@ class User < ApplicationRecord @wants_raw_federated ||= (settings.rawr_federated || false) end - def hides_color_formatting? - @hides_color_formatting ||= (settings.disable_color || false) - end - def hides_stats? @hides_stats ||= (settings.hide_stats || false) end -- cgit