From abfd0c107c8003ba06a118625c49d22df553696f Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Fri, 14 Aug 2020 02:41:44 -0500 Subject: [Command Tags] Add #!notify toggle to allow toggling whether or not a post should be locally delivered to timelines/notifications --- app/lib/command_tag/command/status_tools.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'app/lib') diff --git a/app/lib/command_tag/command/status_tools.rb b/app/lib/command_tag/command/status_tools.rb index daa44601b..a323138ea 100644 --- a/app/lib/command_tag/command/status_tools.rb +++ b/app/lib/command_tag/command/status_tools.rb @@ -41,6 +41,14 @@ module CommandTag::Command::StatusTools alias handle_p_before_save handle_visibility_before_save alias handle_privacy_before_save handle_visibility_before_save + def handle_notify_before_save(args) + return if args[0].blank? + + @status.notify = read_boolean_from(args[0]) + end + + alias handle_notice_before_save handle_notify_before_save + private def resolve_mention(mention_text) -- cgit