From 2c99f8c52d080b2da43c07fa18a29a4edaf2a93b Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 25 Oct 2021 18:33:41 +0200 Subject: [PATCH] fixup! Improvements to group following Signed-off-by: Thomas Citharel --- lib/web/auth/guardian.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/web/auth/guardian.ex b/lib/web/auth/guardian.ex index 9709aff9a..446fb5dc9 100644 --- a/lib/web/auth/guardian.ex +++ b/lib/web/auth/guardian.ex @@ -32,7 +32,7 @@ defmodule Mobilizon.Web.Auth.Guardian do try do case Integer.parse(uid_str) do {uid, ""} -> - {:ok, Users.get_user!(uid)} + {:ok, Users.get_user_with_actors!(uid)} _ -> {:error, :invalid_id}