From: Haelwenn (lanodan) Monnier Date: Thu, 1 Nov 2018 14:07:27 +0000 (+0100) Subject: Pleroma.Web.TwitterAPI.ActivityView: Harden TwitterAPI against remnant of prismo X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=3c7d4ff27100420f69e68fb256a2181a1a35a4a7;p=akkoma Pleroma.Web.TwitterAPI.ActivityView: Harden TwitterAPI against remnant of prismo --- diff --git a/lib/pleroma/web/twitter_api/views/activity_view.ex b/lib/pleroma/web/twitter_api/views/activity_view.ex index 8e8b3f5ed..83e8fb765 100644 --- a/lib/pleroma/web/twitter_api/views/activity_view.ex +++ b/lib/pleroma/web/twitter_api/views/activity_view.ex @@ -287,7 +287,7 @@ defmodule Pleroma.Web.TwitterAPI.ActivityView do summary = object["name"] || object["summary"] content = - if !!summary and summary != "" do + if !!summary and summary != "" and is_bitstring(object["url"]) do "

#{summary}

#{object["content"]}" else object["content"]