Make DTL switchable

This commit is contained in:
KMY 2023-09-12 09:04:20 +09:00
parent 65fe554773
commit 6fe51e360a
14 changed files with 46 additions and 19 deletions

View file

@ -43,6 +43,7 @@ class Status < ApplicationRecord
include RateLimitable
include StatusSafeReblogInsert
include StatusSearchConcern
include DtlHelper
rate_limit by: :account, family: :statuses
@ -291,7 +292,7 @@ class Status < ApplicationRecord
end
def dtl?
tags.where(name: 'kmyblue').exists?
tags.where(name: DTL_TAG).exists?
end
def emojis