forked from AkkomaGang/akkoma
Group def perform() together to fix the build
This commit is contained in:
parent
fa4bd898f1
commit
1caa6331ea
1 changed files with 2 additions and 2 deletions
|
@ -1014,8 +1014,6 @@ def deactivate_async(user, status \\ true) do
|
||||||
PleromaJobQueue.enqueue(:background, __MODULE__, [:deactivate_async, user, status])
|
PleromaJobQueue.enqueue(:background, __MODULE__, [:deactivate_async, user, status])
|
||||||
end
|
end
|
||||||
|
|
||||||
def perform(:deactivate_async, user, status), do: deactivate(user, status)
|
|
||||||
|
|
||||||
def deactivate(%User{} = user, status \\ true) do
|
def deactivate(%User{} = user, status \\ true) do
|
||||||
info_cng = User.Info.set_activation_status(user.info, status)
|
info_cng = User.Info.set_activation_status(user.info, status)
|
||||||
|
|
||||||
|
@ -1074,6 +1072,8 @@ def perform(:fetch_initial_posts, %User{} = user) do
|
||||||
{:ok, user}
|
{:ok, user}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def perform(:deactivate_async, user, status), do: deactivate(user, status)
|
||||||
|
|
||||||
@spec perform(atom(), User.t(), list()) :: list() | {:error, any()}
|
@spec perform(atom(), User.t(), list()) :: list() | {:error, any()}
|
||||||
def perform(:blocks_import, %User{} = blocker, blocked_identifiers)
|
def perform(:blocks_import, %User{} = blocker, blocked_identifiers)
|
||||||
when is_list(blocked_identifiers) do
|
when is_list(blocked_identifiers) do
|
||||||
|
|
Loading…
Reference in a new issue