fix(feed): escape self link URLs
This commit is contained in:
parent
85a802282e
commit
d0c8ca92a5
2 changed files with 17 additions and 1 deletions
|
|
@ -167,7 +167,11 @@ defmodule Pleroma.Web.Feed.FeedView do
|
|||
|
||||
def activity_context(activity), do: escape(activity.data["context"])
|
||||
|
||||
def feed_self_url(conn), do: Phoenix.Controller.current_url(conn)
|
||||
def feed_self_url(conn) do
|
||||
conn
|
||||
|> Phoenix.Controller.current_url()
|
||||
|> escape()
|
||||
end
|
||||
|
||||
def activity_link(activity, data) do
|
||||
cond do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue