Add backend for accepting a group invitation

For #887
This commit is contained in:
Massedil
2025-11-04 23:39:05 +01:00
committed by setop
parent 569222fcff
commit 16a4e4a5bc
3 changed files with 45 additions and 2 deletions

View File

@@ -39,4 +39,8 @@ defmodule Mobilizon.Invitations do
|> where([i], i.group_id == ^group_id)
|> Repo.all()
end
def find_invitation(group_id, token) do
Repo.get_by(Invitation, group_id: group_id, token: token)
end
end