activitypub: only send accept back automatically if the account is not locked
This commit is contained in:
parent
3208611bfc
commit
e5206752e1
2 changed files with 8 additions and 2 deletions
|
|
@ -252,6 +252,10 @@ defmodule Pleroma.User do
|
|||
Enum.member?(follower.following, followed.follower_address)
|
||||
end
|
||||
|
||||
def locked?(%User{} = user) do
|
||||
user.info["locked"] || false
|
||||
end
|
||||
|
||||
def get_by_ap_id(ap_id) do
|
||||
Repo.get_by(User, ap_id: ap_id)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue