about summary refs log tree commit diff
path: root/app/lib
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-09-01 13:28:42 -0500
committerFire Demon <firedemon@creature.cafe>2020-09-01 13:28:55 -0500
commit97a98796b4b01d9ce4c2147cacf54960a71010f2 (patch)
tree062f6df58600a4289e39c3e197163772181ea3a0 /app/lib
parent0dc67e07f1c53d5feae19417743fb225dfa64178 (diff)
[Future, Privacy] Add sticky domain permissions flag
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/command_tag/command/account_tools.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/command_tag/command/account_tools.rb b/app/lib/command_tag/command/account_tools.rb
index b433c32d4..8c8c74e68 100644
--- a/app/lib/command_tag/command/account_tools.rb
+++ b/app/lib/command_tag/command/account_tools.rb
@@ -56,7 +56,7 @@ module CommandTag::Command::AccountTools
         @account.user.settings.default_privacy = args[1]
       elsif args[1] == 'public'
         domains = args[2..-1].map { |domain| normalize_domain(domain) unless domain == '*' }.uniq.compact
-        @account.domain_permissions.where(domain: domains).destroy_all if domains.present?
+        @account.domain_permissions.where(domain: domains, sticky: false).destroy_all if domains.present?
       elsif args[1] != 'cc'
         args[2..-1].flat_map(&:split).uniq.each do |domain|
           domain = normalize_domain(domain) unless domain == '*'