aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/activity_pub
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2020-02-09 12:15:52 +0000
committerrinpatch <rinpatch@sdf.org>2020-02-09 12:15:52 +0000
commit42f76306e7fe69fc51be00285a4fef8569f54989 (patch)
tree416bc4048224a5fc9312c4c5834ea5207497a6b7 /lib/pleroma/web/activity_pub
parent1629fa2412b877f69c5cf0df09782227827b272b (diff)
parent06fec99e1d8d4be6cb71551089f2d95e936d6990 (diff)
downloadpleroma-1.1.9.tar.gz
Merge branch 'release/1.1.9' into 'stable'v1.1.9
Release/1.1.9 See merge request pleroma/pleroma!2189
Diffstat (limited to 'lib/pleroma/web/activity_pub')
-rw-r--r--lib/pleroma/web/activity_pub/transmogrifier.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/activity_pub/transmogrifier.ex b/lib/pleroma/web/activity_pub/transmogrifier.ex
index 1c67fee2e..e925aae2f 100644
--- a/lib/pleroma/web/activity_pub/transmogrifier.ex
+++ b/lib/pleroma/web/activity_pub/transmogrifier.ex
@@ -416,7 +416,7 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
def handle_incoming(%{"id" => nil}, _options), do: :error
def handle_incoming(%{"id" => ""}, _options), do: :error
# length of https:// = 8, should validate better, but good enough for now.
- def handle_incoming(%{"id" => id}, _options) when not (is_binary(id) and length(id) > 8),
+ def handle_incoming(%{"id" => id}, _options) when is_binary(id) and byte_size(id) < 8,
do: :error
# TODO: validate those with a Ecto scheme