1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Workers.MuteExpireWorker do
6 use Pleroma.Workers.WorkerHelper, queue: "mute_expire"
9 def perform(%Job{args: %{"op" => "unmute_user", "muter_id" => muter_id, "mutee_id" => mutee_id}}) do
10 Pleroma.User.unmute(muter_id, mutee_id)
15 args: %{"op" => "unmute_conversation", "user_id" => user_id, "activity_id" => activity_id}
17 Pleroma.Web.CommonAPI.remove_mute(user_id, activity_id)
22 def timeout(_job), do: :timer.seconds(5)