projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'hide-blocked-from-interaction' into 'develop'
[akkoma]
/
lib
/
pleroma
/
list.ex
diff --git
a/lib/pleroma/list.ex
b/lib/pleroma/list.ex
index 16955b3b559bf3f34bd339941a1267be58a814bc..1d320206e3091b68ec61535247666f42f2232700 100644
(file)
--- a/
lib/pleroma/list.ex
+++ b/
lib/pleroma/list.ex
@@
-146,4
+146,10
@@
defmodule Pleroma.List do
end
def memberships(_), do: []
end
def memberships(_), do: []
+
+ def member?(%Pleroma.List{following: following}, %User{follower_address: follower_address}) do
+ Enum.member?(following, follower_address)
+ end
+
+ def member?(_, _), do: false
end
end