From e11058c20c25aaf644e7455451ebf1949b7e19c8 Mon Sep 17 00:00:00 2001 From: sadposter Date: Mon, 22 Jul 2019 01:17:59 +0100 Subject: [PATCH] add user show task --- lib/mix/tasks/pleroma/user.ex | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/mix/tasks/pleroma/user.ex b/lib/mix/tasks/pleroma/user.ex index 55f89e1d0..b77e4291d 100644 --- a/lib/mix/tasks/pleroma/user.ex +++ b/lib/mix/tasks/pleroma/user.ex @@ -423,6 +423,13 @@ def run(["change_email", nickname, email]) do end end + def run(["show", nickname]) do + start_pleroma() + nickname + |> User.get_cached_by_nickname() + |> IO.inspect + end + def run(["send_confirmation", nickname]) do start_pleroma() with %User{} = user <- User.get_cached_by_nickname(nickname) do