fixup! WIP

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-05-04 18:56:44 +02:00
parent 6d81849629
commit b57b9a0e43
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
1 changed files with 5 additions and 5 deletions

View File

@ -50,7 +50,7 @@ defmodule Mobilizon.Web.Email.Activity do
|> Enum.into(%{})
end
# We filter duplicates when message_params are being the same
# We filter duplicates when subject_params are being the same
# so it will probably not catch much things
@spec filter_duplicates(list()) :: list()
defp filter_duplicates(activities) do
@ -58,15 +58,15 @@ defmodule Mobilizon.Web.Email.Activity do
author: %Actor{id: author_id},
group: %Actor{id: group_id},
type: type,
message: message,
message_params: message_params
subject: subject,
subject_params: subject_params
} ->
%{
author_id: author_id,
group_id: group_id,
type: type,
message: message,
message_params: message_params
subject: subject,
subject_params: subject_params
}
end)
end