mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-27 19:09:12 +00:00
c4439c630f
grep -rl '# Copyright © .* Pleroma' * | xargs sed -i 's;Copyright © .* Pleroma .*;Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>;'
21 lines
654 B
Elixir
21 lines
654 B
Elixir
# Pleroma: A lightweight social networking server
|
|
# Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
defmodule Pleroma.Workers.MuteExpireWorker do
|
|
use Pleroma.Workers.WorkerHelper, queue: "mute_expire"
|
|
|
|
@impl Oban.Worker
|
|
def perform(%Job{args: %{"op" => "unmute_user", "muter_id" => muter_id, "mutee_id" => mutee_id}}) do
|
|
Pleroma.User.unmute(muter_id, mutee_id)
|
|
:ok
|
|
end
|
|
|
|
def perform(%Job{
|
|
args: %{"op" => "unmute_conversation", "user_id" => user_id, "activity_id" => activity_id}
|
|
}) do
|
|
Pleroma.Web.CommonAPI.remove_mute(user_id, activity_id)
|
|
:ok
|
|
end
|
|
end
|