Improve member adding and excluding flow
Allow to exclude a member Send emails to the member when it's excluded Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -17,7 +17,8 @@ defmodule Mobilizon.Federation.ActivityPub.Preloader do
|
||||
def maybe_preload(%Comment{url: url}),
|
||||
do: {:ok, Discussions.get_comment_from_url_with_preload!(url)}
|
||||
|
||||
def maybe_preload(%Discussion{} = discussion), do: {:ok, discussion}
|
||||
def maybe_preload(%Discussion{id: discussion_id}),
|
||||
do: {:ok, Discussions.get_discussion(discussion_id)}
|
||||
|
||||
def maybe_preload(%Resource{url: url}),
|
||||
do: {:ok, Resources.get_resource_by_url_with_preloads(url)}
|
||||
|
||||
Reference in New Issue
Block a user