From: William Pitcock Date: Tue, 20 Nov 2018 18:47:00 +0000 (+0000) Subject: oauth plug: fix deactivated check X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=3356c7d1e9c0abd7573768e63e004d51aa0e52b9;p=akkoma oauth plug: fix deactivated check --- diff --git a/lib/pleroma/plugs/oauth_plug.ex b/lib/pleroma/plugs/oauth_plug.ex index 0380ce14d..630f15eec 100644 --- a/lib/pleroma/plugs/oauth_plug.ex +++ b/lib/pleroma/plugs/oauth_plug.ex @@ -20,7 +20,7 @@ defmodule Pleroma.Plugs.OAuthPlug do with token when not is_nil(token) <- token, %Token{user_id: user_id} <- Repo.get_by(Token, token: token), %User{} = user <- Repo.get(User, user_id), - false <- !!user.info["deactivated"] do + false <- !!user.info.deactivated do conn |> assign(:user, user) else