aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlambda <lain@soykaf.club>2019-05-17 09:53:44 +0000
committerlambda <lain@soykaf.club>2019-05-17 09:53:44 +0000
commit46684db84d0583cb5d88f8fcbd6b970ef95c84de (patch)
tree352709a52a3027e3d84bb6c65635bf9a068f2534
parent68c75a08e8593d41f496a362ab1be43d054c09d5 (diff)
downloadpleroma-46684db84d0583cb5d88f8fcbd6b970ef95c84de.tar.gz
Update account_view.ex
-rw-r--r--lib/pleroma/web/mastodon_api/views/account_view.ex2
1 files changed, 1 insertions, 1 deletions
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