projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68c75a0
)
Update account_view.ex
author
lambda
<lain@soykaf.club>
Fri, 17 May 2019 09:53:44 +0000
(09:53 +0000)
committer
lambda
<lain@soykaf.club>
Fri, 17 May 2019 09:53:44 +0000
(09:53 +0000)
lib/pleroma/web/mastodon_api/views/account_view.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/mastodon_api/views/account_view.ex
b/lib/pleroma/web/mastodon_api/views/account_view.ex
index 606a0f2ed290281759969d18ed832f6caa40f793..134c07b7eb57228e2b8b6bbfda16b9f4bae2a915 100644
(file)
--- 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