diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-12-07 22:13:32 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-12-07 22:13:32 -0600 |
commit | 6fa9c3eb1bb416bdc05f8bd4011de396e6248aa5 (patch) | |
tree | bed741486425885e22caa0d1fb44872227b67615 /app/models | |
parent | feceb543fd6df602c8c117247488e415ef89b78a (diff) |
add option to toggle whether regex filters should be applied to mentions
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/account.rb | 2 | ||||
-rw-r--r-- | app/models/user.rb | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/app/models/account.rb b/app/models/account.rb index 6841fba3a..c52f28d33 100644 --- a/app/models/account.rb +++ b/app/models/account.rb @@ -144,6 +144,7 @@ class Account < ApplicationRecord :hides_stats?, :shows_application?, + :filters_mentions?, :hides_replies_of_muted?, :hides_replies_of_blocked?, :hides_replies_of_blocker?, @@ -156,7 +157,6 @@ class Account < ApplicationRecord :wants_larger_buttons?, :wants_larger_drawer?, :wants_larger_emoji?, - :hides_filtered_gap?, :hides_mascot?, :hides_captions?, :shows_cursor?, diff --git a/app/models/user.rb b/app/models/user.rb index d0711c634..06af06911 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -122,7 +122,7 @@ class User < ApplicationRecord :larger_buttons, :larger_drawer, :larger_emoji, - :remove_filtered, + :filter_mentions, :hide_replies_muted, :hide_replies_blocked, :hide_replies_blocker, @@ -268,8 +268,8 @@ class User < ApplicationRecord @wants_larger_emoji ||= (settings.larger_emoji || false) end - def hides_filtered_gap? - @hides_filtered_gap ||= (settings.remove_filtered || false) + def filters_mentions? + @filters_mentions ||= (settings.filter_mentions || false) end def hides_replies_of_muted? |