mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 08:36:29 +00:00
Revert
This commit is contained in:
parent
778010ef8e
commit
c252ac71d4
1 changed files with 0 additions and 14 deletions
|
@ -345,20 +345,6 @@ defmodule Pleroma.Activity do
|
|||
|> Repo.all()
|
||||
end
|
||||
|
||||
def follow_requests_outstanding_since?(
|
||||
%User{ap_id: follower_id},
|
||||
%User{ap_id: followee_id},
|
||||
since_datetime
|
||||
) do
|
||||
followee_id
|
||||
|> Queries.by_object_id()
|
||||
|> Queries.by_type("Follow")
|
||||
|> where([a], a.inserted_at > ^since_datetime)
|
||||
|> where([a], fragment("? ->> 'state' != 'accept'", a.data))
|
||||
|> where([a], a.actor == ^follower_id)
|
||||
|> Repo.exists?()
|
||||
end
|
||||
|
||||
def restrict_deactivated_users(query) do
|
||||
deactivated_users =
|
||||
from(u in User.Query.build(%{deactivated: true}), select: u.ap_id)
|
||||
|
|
Loading…
Reference in a new issue