From 8e307ca94dfa2281013fc29dd5e0812afaf721d0 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sun, 16 Feb 2020 03:39:53 -0600 Subject: add `keep_hidden?` flag to make sure drafts are not accidentally published by the delayed roars feature --- app/lib/bangtags.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/lib') diff --git a/app/lib/bangtags.rb b/app/lib/bangtags.rb index c85f4ee34..53c63bf78 100644 --- a/app/lib/bangtags.rb +++ b/app/lib/bangtags.rb @@ -558,7 +558,6 @@ class Bangtags chunk = nil del_tags(@parent_status, 'self.draft', 'draft') Bangtags.new(@parent_status).process - @parent_status.save PostStatusWorker.perform_async(@parent_status.id, hidden: false, process_mentions: true) end @@ -708,6 +707,7 @@ class Bangtags when 'draft' chunk = nil @status.hidden = true + @status.keep_hidden! @vore_stack.push('_draft') @component_stack.push(:var) add_tags(status, 'self.draft') -- cgit