aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-03-10 18:16:10 +0000
committerlain <lain@soykaf.club>2020-03-10 18:16:10 +0000
commit953aece84866a89bd3de8f6d3f5d30e2f9cfb4f3 (patch)
tree8a2b031830f96f94b3b4c12b4da16cfd80579d88 /lib
parent841e4e4d835b8d1cecb33102356ca045571ef1fc (diff)
parent5af798f24659a1558149cf6deddfa55fbc493ac2 (diff)
downloadpleroma-953aece84866a89bd3de8f6d3f5d30e2f9cfb4f3.tar.gz
Merge branch 'fix/post-length-validation' into 'develop'
Fix enforcement of character limits Closes #1618 See merge request pleroma/pleroma!2283
Diffstat (limited to 'lib')
-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")}