Update account_view.ex
authorlambda <lain@soykaf.club>
Fri, 17 May 2019 09:53:44 +0000 (09:53 +0000)
committerlambda <lain@soykaf.club>
Fri, 17 May 2019 09:53:44 +0000 (09:53 +0000)
lib/pleroma/web/mastodon_api/views/account_view.ex

index 606a0f2ed290281759969d18ed832f6caa40f793..134c07b7eb57228e2b8b6bbfda16b9f4bae2a915 100644 (file)
@@ -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