26254c3c45
Squashed, modified, and rebased from glitch-soc/mastodon#2221. Co-authored-by: fef <owo@fef.moe> Co-authored-by: Jeremy Kescher <jeremy@kescher.at> Co-authored-by: neatchee <neatchee@gmail.com> Co-authored-by: Ivan Rodriguez <104603218+IRod22@users.noreply.github.com> Co-authored-by: Plastikmensch <plastikmensch@users.noreply.github.com>
12 lines
264 B
Ruby
12 lines
264 B
Ruby
# frozen_string_literal: true
|
|
|
|
class UnreactWorker
|
|
include Sidekiq::Worker
|
|
|
|
def perform(account_id, status_id, emoji)
|
|
UnreactService.new.call(Account.find(account_id), Status.find(status_id), emoji)
|
|
rescue ActiveRecord::RecordNotFound
|
|
true
|
|
end
|
|
end
|