diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-12-06 12:08:38 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-12-06 12:08:38 -0600 |
commit | ac5fb845afd01de0bfe9c1bfe8245af8dedac9bb (patch) | |
tree | 4ea044f9e6c792ec25fce7d592ee1af5474dcaee /app/models | |
parent | 996cb6818f30b2749f510cda91c637d506ca8fe1 (diff) |
use `self.draft` scope tag for draft posts & add draft header
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/status.rb | 2 |
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 |