Verified Commit 755f1664 authored by Haelwenn's avatar Haelwenn
Browse files

Pleroma.Web.MastodonAPI.StatusView: Do not fail when URL isn’t a string

parent 33587f5c
......@@ -240,7 +240,7 @@ def render_content(%{"type" => "Article"} = object) do
summary = object["name"]
content =
if !!summary and summary != "" do
if !!summary and summary != "" and is_bitstring(object["url"]) do
"<p><a href=\"#{object["url"]}\">#{summary}</a></p>#{object["content"]}"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment