diff options
author | multiple creatures <dev@multiple-creature.party> | 2020-02-16 03:39:53 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-02-16 03:39:53 -0600 |
commit | 8e307ca94dfa2281013fc29dd5e0812afaf721d0 (patch) | |
tree | 58f57dca36befaa67728719cfc8e46cf1e6478c6 /app/lib | |
parent | 69bcd23c89d5d4dc35d6a0a52da2ac3ac4c2d500 (diff) |
add `keep_hidden?` flag to make sure drafts are not accidentally published by the delayed roars feature
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/bangtags.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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') |