Add QT attribute to send as quote
This commit is contained in:
parent
d257157276
commit
e16a885c81
3 changed files with 10 additions and 8 deletions
|
@ -226,6 +226,10 @@ class Status < ApplicationRecord
|
|||
!reblog_of_id.nil?
|
||||
end
|
||||
|
||||
def quote
|
||||
reference_objects.where(attribute_type: 'QT').first&.target_status
|
||||
end
|
||||
|
||||
def within_realtime_window?
|
||||
created_at >= REAL_TIME_WINDOW.ago
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue