Pleroma.Web.TwitterAPI.ActivityView: Harden TwitterAPI against remnant of prismo
This commit is contained in:
parent
4fab4e9ba4
commit
3c7d4ff271
@ -287,7 +287,7 @@ defmodule Pleroma.Web.TwitterAPI.ActivityView do
|
|||||||
summary = object["name"] || object["summary"]
|
summary = object["name"] || object["summary"]
|
||||||
|
|
||||||
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 New Issue
Block a user