From 369b9062dee5f21cd6d833f2c4687bb371889682 Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Thu, 30 Jul 2020 12:45:16 -0500 Subject: [Command Tags] Alias "p" to visibility commands --- app/lib/command_tag/commands/account_tools.rb | 2 +- app/lib/command_tag/commands/status_tools.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/lib/command_tag/commands/account_tools.rb b/app/lib/command_tag/commands/account_tools.rb index dd7fd0229..473df7a39 100644 --- a/app/lib/command_tag/commands/account_tools.rb +++ b/app/lib/command_tag/commands/account_tools.rb @@ -17,7 +17,7 @@ module CommandTag::Commands::AccountTools return if args[0].blank? case args[0].downcase - when 'v', 'visibility', 'privacy', 'default-visibility', 'default-privacy' + when 'v', 'p', 'visibility', 'privacy', 'default-visibility', 'default-privacy' args[1] = read_visibility_from(args[1]) return if args[1].blank? diff --git a/app/lib/command_tag/commands/status_tools.rb b/app/lib/command_tag/commands/status_tools.rb index 7eaeddbea..d00efe054 100644 --- a/app/lib/command_tag/commands/status_tools.rb +++ b/app/lib/command_tag/commands/status_tools.rb @@ -26,5 +26,6 @@ module CommandTag::Commands::StatusTools end alias handle_v_before_save handle_visibility_before_save + alias handle_p_before_save handle_visibility_before_save alias handle_privacy_before_save handle_visibility_before_save end -- cgit