forked from mirrors/akkoma
Apply suggestion to lib/mix/tasks/pleroma/user.ex
This commit is contained in:
parent
71fb75b7ef
commit
363618207c
1 changed files with 1 additions and 1 deletions
|
@ -415,7 +415,7 @@ defmodule Mix.Tasks.Pleroma.User do
|
||||||
def run(["sign_out", nickname]) do
|
def run(["sign_out", nickname]) do
|
||||||
Common.start_pleroma()
|
Common.start_pleroma()
|
||||||
|
|
||||||
with %User{} = user <- User.get_cached_by_nickname(nickname) do
|
with %User{local: true} = user <- User.get_cached_by_nickname(nickname) do
|
||||||
OAuth.Token.delete_user_tokens(user)
|
OAuth.Token.delete_user_tokens(user)
|
||||||
OAuth.Authorization.delete_user_authorizations(user)
|
OAuth.Authorization.delete_user_authorizations(user)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue