projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'develop' into global-status-expiration
[akkoma]
/
lib
/
pleroma
/
following_relationship.ex
diff --git
a/lib/pleroma/following_relationship.ex
b/lib/pleroma/following_relationship.ex
index 624bddfe487231b836b7f845fcb3e85009695813..a9538ea4e4d613b8020b835781268890ca229b5a 100644
(file)
--- a/
lib/pleroma/following_relationship.ex
+++ b/
lib/pleroma/following_relationship.ex
@@
-151,4
+151,10
@@
defmodule Pleroma.FollowingRelationship do
)
|> Repo.all()
end
+
+ def find(following_relationships, follower, following) do
+ Enum.find(following_relationships, fn
+ fr -> fr.follower_id == follower.id and fr.following_id == following.id
+ end)
+ end
end