escaping summary and other fields in xml templates

This commit is contained in:
Alexander Strizhakov 2020-11-10 10:44:22 +03:00
commit 0c68b9ac13
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
4 changed files with 29 additions and 54 deletions

View file

@ -83,7 +83,7 @@ defmodule Pleroma.Web.Feed.FeedView do
def activity_content(_), do: ""
def activity_context(activity), do: activity.data["context"]
def activity_context(activity), do: escape(activity.data["context"])
def attachment_href(attachment) do
attachment["url"]