Fix nil error when removing status caused by race condition (#16099)
This commit is contained in:
parent
a6564d56d6
commit
f4b7c6b619
3 changed files with 6 additions and 2 deletions
|
@ -161,6 +161,10 @@ class Status < ApplicationRecord
|
|||
attributes['local'] || uri.nil?
|
||||
end
|
||||
|
||||
def in_reply_to_local_account?
|
||||
reply? && thread&.account&.local?
|
||||
end
|
||||
|
||||
def reblog?
|
||||
!reblog_of_id.nil?
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue