Fix: 引用元の投稿が削除されたときにエラーが出る問題 (#261)

This commit is contained in:
KMY(雪あすか) 2023-11-09 11:50:57 +09:00 committed by GitHub
parent 1da7f6f4a1
commit 85a6631709
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -245,7 +245,7 @@ class Status < ApplicationRecord
end
def quote?
!quote_of_id.nil?
!quote_of_id.nil? && !quote.nil?
end
def within_realtime_window?