fix(feed): escape self link URLs

This commit is contained in:
Lain Soykaf 2026-07-24 20:11:19 +04:00
commit d0c8ca92a5
No known key found for this signature in database
2 changed files with 17 additions and 1 deletions

View file

@ -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