mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-27 16:24:23 +00:00
Pleroma.Web.MastodonAPI.StatusView: Do not fail when URL isn’t a string
This commit is contained in:
parent
33587f5cb4
commit
755f166406
|
@ -240,7 +240,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
|
||||||
summary = object["name"]
|
summary = object["name"]
|
||||||
|
|
||||||
content =
|
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"]}"
|
"<p><a href=\"#{object["url"]}\">#{summary}</a></p>#{object["content"]}"
|
||||||
else
|
else
|
||||||
object["content"]
|
object["content"]
|
||||||
|
|
Loading…
Reference in a new issue