Add comments under events to activities

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2021-03-10 17:38:13 +01:00
parent 58ee8e679b
commit 1f926902aa
14 changed files with 105 additions and 15 deletions

View File

@@ -78,6 +78,10 @@ defmodule Mobilizon.GraphQL.Resolvers.Activity do
Actors.get_actor(group_id)
end
defp get_object(:comment, comment_id) do
Discussions.get_comment(comment_id)
end
@spec transform_params(map()) :: list()
defp transform_params(params) do
Enum.map(params, fn {key, value} -> %{key: key, value: transform_value(value)} end)