refactor: use Phoenix verified routes
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
"Your membership request for group %{link_start}<b>%{group}</b>%{link_end} has been approved.",
|
||||
group: escape_html(display_name(@group)),
|
||||
link_start:
|
||||
"<a href=\"#{Routes.page_url(Mobilizon.Web.Endpoint, :actor, preferred_username_and_domain(@group)) |> URI.decode()}\">",
|
||||
"<a href=\"#{~p"/@#{preferred_username_and_domain(@group)}" |> url() |> URI.decode()}\">",
|
||||
link_end: "</a>"
|
||||
)
|
||||
|> raw %>
|
||||
@@ -66,7 +66,9 @@
|
||||
<td align="center" style="border-radius: 3px;" bgcolor="#3C376E">
|
||||
<a
|
||||
href={
|
||||
"#{Routes.page_url(Mobilizon.Web.Endpoint, :actor, Mobilizon.Actors.Actor.preferred_username_and_domain(@group)) |> URI.decode()}"
|
||||
~p"/@#{Mobilizon.Actors.Actor.preferred_username_and_domain(@group)}"
|
||||
|> url()
|
||||
|> URI.decode()
|
||||
}
|
||||
target="_blank"
|
||||
style="font-size: 20px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; padding: 15px 25px; border-radius: 2px; border: 1px solid #3C376E; display: inline-block;"
|
||||
|
||||
Reference in New Issue
Block a user