瀏覽代碼

Update account_view.ex

tags/v1.1.4
lambda 5 年之前
父節點
當前提交
46684db84d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      lib/pleroma/web/mastodon_api/views/account_view.ex

+ 1
- 1
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


Loading…
取消
儲存