Add global search

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2022-08-26 16:08:58 +02:00
parent bfc936f57c
commit 48935e2168
216 changed files with 3646 additions and 2806 deletions

View File

@@ -254,6 +254,10 @@ defmodule Mobilizon.GraphQL.Resolvers.Member do
"You must be logged-in to remove a member"
)}
def count_members_for_group(%Actor{type: :Group} = group, _args, _resolution) do
{:ok, Actors.count_members_for_group(group)}
end
# Rejected members can be invited again
@spec check_member_not_existant_or_rejected(String.t() | integer, String.t() | integer()) ::
boolean()