From: lambda Date: Fri, 17 May 2019 09:53:44 +0000 (+0000) Subject: Update account_view.ex X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=46684db84d0583cb5d88f8fcbd6b970ef95c84de;p=akkoma Update account_view.ex --- diff --git a/lib/pleroma/web/mastodon_api/views/account_view.ex b/lib/pleroma/web/mastodon_api/views/account_view.ex index 606a0f2ed..134c07b7e 100644 --- a/lib/pleroma/web/mastodon_api/views/account_view.ex +++ b/lib/pleroma/web/mastodon_api/views/account_view.ex @@ -40,7 +40,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountView do follow_activity = Pleroma.Web.ActivityPub.Utils.fetch_latest_follow(user, target) requested = - if follow_activity and !User.following?(target, user) do + if follow_activity && !User.following?(target, user) do follow_activity.data["state"] == "pending" else false