about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-12-06 12:08:38 -0600
committermultiple creatures <dev@multiple-creature.party>2019-12-06 12:08:38 -0600
commitac5fb845afd01de0bfe9c1bfe8245af8dedac9bb (patch)
tree4ea044f9e6c792ec25fce7d592ee1af5474dcaee /app/models
parent996cb6818f30b2749f510cda91c637d506ca8fe1 (diff)
use `self.draft` scope tag for draft posts & add draft header
Diffstat (limited to 'app/models')
-rw-r--r--app/models/status.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/status.rb b/app/models/status.rb
index 60040b6cf..8fdfd0737 100644
--- a/app/models/status.rb
+++ b/app/models/status.rb
@@ -227,7 +227,7 @@ class Status < ApplicationRecord
   end
 
   def draft?
-    local? && text.present? && text.include?('#!draft')
+    local? && text.present? && self.tags.where(name: 'self.draft').exists?
   end
 
   def target