From 0dc67e07f1c53d5feae19417743fb225dfa64178 Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Mon, 31 Aug 2020 23:18:17 -0500 Subject: [Command Tags] Add privacy alias for community visibility --- app/lib/command_tag/command/status_tools.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/lib/command_tag/command/status_tools.rb') diff --git a/app/lib/command_tag/command/status_tools.rb b/app/lib/command_tag/command/status_tools.rb index 5cc11dde2..9990dc136 100644 --- a/app/lib/command_tag/command/status_tools.rb +++ b/app/lib/command_tag/command/status_tools.rb @@ -61,6 +61,9 @@ module CommandTag::Command::StatusTools mention(resolve_mention(target)) end end + elsif args[0] == 'community' + @status.visibility = :public + @status.domain_permissions.create_or_update(domain: '*', visibility: :unlisted) else args[1..-1].flat_map(&:split).uniq.each do |domain| domain = normalize_domain(domain) unless domain == '*' -- cgit