about summary refs log tree commit diff
path: root/app/lib/command_tag/commands
diff options
context:
space:
mode:
Diffstat (limited to 'app/lib/command_tag/commands')
-rw-r--r--app/lib/command_tag/commands/status_tools.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/lib/command_tag/commands/status_tools.rb b/app/lib/command_tag/commands/status_tools.rb
index 23bdcbfc3..0e6524001 100644
--- a/app/lib/command_tag/commands/status_tools.rb
+++ b/app/lib/command_tag/commands/status_tools.rb
@@ -27,4 +27,10 @@ module CommandTag::Commands::StatusTools
 
   alias handle_v_before_save                      handle_visibility_before_save
   alias handle_privacy_before_save                handle_visibility_before_save
+
+  def handle_semiprivate_before_save(args)
+    return unless author_of_status?
+
+    @semiprivate = args.blank? || read_boolean_from(args[0])
+  end
 end