mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-25 06:18:07 +01:00
6ae86f40d1
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>
11 lines
264 B
Ruby
11 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
|