diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-07-30 12:45:16 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:45:16 -0500 |
commit | 369b9062dee5f21cd6d833f2c4687bb371889682 (patch) | |
tree | 6bd3a5fec46012b7ad96016e7c5e475d41d84d7f /app | |
parent | 8a1172f163aafed9bf61d50a54a33e786ecff209 (diff) |
[Command Tags] Alias "p" to visibility commands
Diffstat (limited to 'app')
-rw-r--r-- | app/lib/command_tag/commands/account_tools.rb | 2 | ||||
-rw-r--r-- | app/lib/command_tag/commands/status_tools.rb | 1 |
2 files changed, 2 insertions, 1 deletions
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 |