Merge branch 'develop' into global-status-expiration
[akkoma] / lib / pleroma / following_relationship.ex
index 624bddfe487231b836b7f845fcb3e85009695813..a9538ea4e4d613b8020b835781268890ca229b5a 100644 (file)
@@ -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