|
|
@ -5,13 +5,13 @@ class ActivityPub::Activity::Delete < ActivityPub::Activity |
|
|
|
status = Status.find_by(uri: object_uri, account: @account) |
|
|
|
status = Status.find_by(uri: object_uri, account: @account) |
|
|
|
status ||= Status.find_by(uri: @object['_:atomUri'], account: @account) if @object.is_a?(Hash) && @object['_:atomUri'].present? |
|
|
|
status ||= Status.find_by(uri: @object['_:atomUri'], account: @account) if @object.is_a?(Hash) && @object['_:atomUri'].present? |
|
|
|
|
|
|
|
|
|
|
|
if status.nil? |
|
|
|
|
|
|
|
delete_later!(object_uri) |
|
|
|
delete_later!(object_uri) |
|
|
|
else |
|
|
|
|
|
|
|
|
|
|
|
return if status.nil? |
|
|
|
|
|
|
|
|
|
|
|
forward_for_reblogs(status) |
|
|
|
forward_for_reblogs(status) |
|
|
|
delete_now!(status) |
|
|
|
delete_now!(status) |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private |
|
|
|
private |
|
|
|
|
|
|
|
|
|
|
|