aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/common_api/utils.ex
diff options
context:
space:
mode:
authorMark Felder <feld@FreeBSD.org>2020-03-10 13:08:00 -0500
committerrinpatch <rinpatch@sdf.org>2020-03-15 16:58:13 +0300
commitf8dc597c51ef294311687e5f3ff468635779638f (patch)
tree71b2a7e34d6f0f9703f0584e22a1c540553035f4 /lib/pleroma/web/common_api/utils.ex
parent423cfaf141afb03676aeb5e0f377be67e89092fc (diff)
downloadpleroma-f8dc597c51ef294311687e5f3ff468635779638f.tar.gz
Fix enforcement of character limits
Diffstat (limited to 'lib/pleroma/web/common_api/utils.ex')
-rw-r--r--lib/pleroma/web/common_api/utils.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/common_api/utils.ex b/lib/pleroma/web/common_api/utils.ex
index 8746273c4..348fdedf1 100644
--- a/lib/pleroma/web/common_api/utils.ex
+++ b/lib/pleroma/web/common_api/utils.ex
@@ -591,7 +591,7 @@ defmodule Pleroma.Web.CommonAPI.Utils do
limit = Pleroma.Config.get([:instance, :limit])
length = String.length(full_payload)
- if length < limit do
+ if length <= limit do
:ok
else
{:error, dgettext("errors", "The status is over the character limit")}