projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do not need a function to provide fallback value with default defined in config.exs
[akkoma]
/
lib
/
pleroma
/
following_relationship.ex
diff --git
a/lib/pleroma/following_relationship.ex
b/lib/pleroma/following_relationship.ex
index 3a3082e728037e265bc56a55883f8df7f5e36fe9..093b1f4050d62a94f70c865bc27262f2cb70b6ca 100644
(file)
--- a/
lib/pleroma/following_relationship.ex
+++ b/
lib/pleroma/following_relationship.ex
@@
-141,6
+141,12
@@
defmodule Pleroma.FollowingRelationship do
|> where([r], r.state == ^:follow_accept)
end
|> where([r], r.state == ^:follow_accept)
end
+ def outgoing_pending_follow_requests_query(%User{} = follower) do
+ __MODULE__
+ |> where([r], r.follower_id == ^follower.id)
+ |> where([r], r.state == ^:follow_pending)
+ end
+
def following(%User{} = user) do
following =
following_query(user)
def following(%User{} = user) do
following =
following_query(user)