about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
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