about summary refs log tree commit diff
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-02-16 15:14:01 -0600
committermultiple creatures <dev@multiple-creature.party>2020-02-16 15:14:01 -0600
commit8bf7e00362b4e5bf29e3841bd871590871b5257d (patch)
tree9f911300a501f5f1eb186802497d7093559e48c2
parentf3048559d9966e6bf3761d31cb79e01a005ebb78 (diff)
make sure manually-tagged drafts are not accidentally published by delayed roars
-rw-r--r--app/services/post_status_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/post_status_service.rb b/app/services/post_status_service.rb
index 9e405fe1c..2d4ee4562 100644
--- a/app/services/post_status_service.rb
+++ b/app/services/post_status_service.rb
@@ -51,7 +51,7 @@ class PostStatusService < BaseService
     @tags        = @options[:tags] || []
     @local_only  = @options[:local_only]
     @sensitive   = (@account.force_sensitive? ? true : @options[:sensitive])
-    @hidden      = @options[:hidden] || false
+    @hidden      = @options[:hidden]
 
     @preloaded_tags = @options[:preloaded_tags] || []
     @preloaded_mentions = @options[:preloaded_mentions] || []
@@ -233,7 +233,7 @@ class PostStatusService < BaseService
 
     return false if @status.destroyed?
 
-    @hidden = @status.keep_hidden? if @options[:hidden].blank?
+    @hidden = @status.keep_hidden? if @hidden.blank?
 
     set_expirations
     process_hashtags_service.call(@status, @tags, @preloaded_tags)