Verified Commit 15aa45ae authored by Haelwenn's avatar Haelwenn

Web.ActivityPub.ActivityPub: Fix check_remote_limit/1 against activities with content: nil

parent 6383fa3a
......@@ -64,7 +64,7 @@ defp check_actor_is_active(actor) do
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
Markdown is supported
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