[Pleroma.Web.MastodonAPI.StatusView] Fix rendering peertube videos

This commit is contained in:
Haelwenn (lanodan) Monnier 2018-08-22 01:46:26 +02:00
parent f6b06d2ac8
commit 5dde6e4a00
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE

View file

@ -216,7 +216,7 @@ def render_content(%{"type" => "Video"} = object) do
content =
if !!name and name != "" do
"<p><a href=\"#{object["url"]}\">#{name}</a></p>#{object["content"]}"
"<p><a href=\"#{object["id"]}\">#{name}</a></p>#{object["content"]}"
else
object["content"]
end