about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-08-02 07:33:09 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:45:17 -0500
commit0362c9b647947d35d6ef3b85bf34a3579e491424 (patch)
tree324ecdc54e12349282f0e7444d54ed4188107671
parenta834d8f61f4becb40ed1b764d598263c64682fee (diff)
[Bug, Command Tags] Do not set publish flag on status before passing to PublishStatusService
-rw-r--r--app/lib/command_tag/command/parent_status_tools.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/command_tag/command/parent_status_tools.rb b/app/lib/command_tag/command/parent_status_tools.rb
index e037c7023..2fdee2fb8 100644
--- a/app/lib/command_tag/command/parent_status_tools.rb
+++ b/app/lib/command_tag/command/parent_status_tools.rb
@@ -2,7 +2,7 @@
 module CommandTag::Command::ParentStatusTools
   def handle_publish_once_at_end(_)
     is_blank = status_text_blank?
-    @status.published = true if @parent.blank? || !is_blank
+    return PublishStatusService.new.call(@status) if @parent.blank? || !is_blank
     return unless is_blank && author_of_parent? && !@parent.published?
 
     PublishStatusService.new.call(@parent)