Remove duplicate function

This commit is contained in:
Essem 2023-07-01 19:45:50 -05:00
parent f426885fa2
commit b1c38ebaee
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C

View file

@ -140,22 +140,6 @@ class ActivityPub::Activity::Undo < ActivityPub::Activity
end
end
def undo_emoji_react
name = @object['content']
return if name.nil?
status = status_from_uri(target_uri)
return if status.nil? || !status.account.local?
if @account.reacted?(status, name.delete(':'))
reaction = status.status_reactions.where(account: @account, name: name).first
reaction&.destroy
else
delete_later!(object_uri)
end
end
def undo_block
target_account = account_from_uri(target_uri)