From: Haelwenn (lanodan) Monnier Date: Sat, 26 Jan 2019 02:50:49 +0000 (+0100) Subject: Web.ActivityPub.ActivityPub: Fix check_remote_limit/1 against activities with content... X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=15aa45ae8a2791a90a5832c1be28233959690987;p=akkoma Web.ActivityPub.ActivityPub: Fix check_remote_limit/1 against activities with content: nil --- diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index 6b4682e35..07779fa00 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -64,7 +64,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do end end - defp check_remote_limit(%{"object" => %{"content" => content}}) do + defp check_remote_limit(%{"object" => %{"content" => content}}) when not is_nil(content) do limit = Pleroma.Config.get([:instance, :remote_limit]) String.length(content) <= limit end