Merge remote-tracking branch 'remotes/upstream/develop' into 1149-oban-job-queue
[akkoma] / lib / pleroma / workers / activity_expiration_worker.ex
1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
4
5 defmodule Pleroma.Workers.ActivityExpirationWorker do
6 use Pleroma.Workers.WorkerHelper, queue: "activity_expiration"
7
8 @impl Oban.Worker
9 def perform(
10 %{
11 "op" => "activity_expiration",
12 "activity_expiration_id" => activity_expiration_id
13 },
14 _job
15 ) do
16 Pleroma.Daemons.ActivityExpirationDaemon.perform(:execute, activity_expiration_id)
17 end
18 end