diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-08-01 14:46:49 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:45:16 -0500 |
commit | 23c69fbc41104b3f1648531775fd4fbf0ccc3c88 (patch) | |
tree | 9772c8b435cc40f29c120600b7d531cb311348d4 /app/lib/command_tag/command/account_tools.rb | |
parent | be6a33effdaf3050bba4b00b8169eb592b4db29f (diff) |
[Feature, Privacy, Command Tags] Add support for addressing lists
Diffstat (limited to 'app/lib/command_tag/command/account_tools.rb')
-rw-r--r-- | app/lib/command_tag/command/account_tools.rb | 2 |
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 6d2e8eca3..a2f24789f 100644 --- a/app/lib/command_tag/command/account_tools.rb +++ b/app/lib/command_tag/command/account_tools.rb @@ -26,7 +26,7 @@ module CommandTag::Command::AccountTools 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? - else + elsif args[1] != 'cc' args[2..-1].flat_map(&:split).uniq.each do |domain| domain = normalize_domain(domain) unless domain == '*' @account.domain_permissions.create_or_update(domain: domain, visibility: args[1]) if domain.present? |