Decode URI sent in notification payloads

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2021-06-17 16:19:35 +02:00
parent d1c31a5080
commit 691d71d9f7
6 changed files with 18 additions and 10 deletions

View File

@@ -71,11 +71,12 @@ defmodule Mobilizon.Service.Activity.Renderer.Event do
end
defp event_url(activity) do
Routes.page_url(
Endpoint,
Endpoint
|> Routes.page_url(
:event,
activity.subject_params["event_uuid"]
)
|> URI.decode()
end
defp profile(activity), do: Actor.display_name_and_username(activity.author)