Fix nil error when removing status caused by race condition (#16099)

This commit is contained in:
Eugen Rochko
2021-04-24 13:35:39 +02:00
committed by GitHub
parent a6564d56d6
commit f4b7c6b619
3 changed files with 6 additions and 2 deletions

View File

@ -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