diff options
author | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-03-12 18:31:10 +0300 |
---|---|---|
committer | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-03-12 18:31:10 +0300 |
commit | 39ed608b13f9204e0503311c7394934b01501ab8 (patch) | |
tree | 34250ed1c719224a3522fd1a841bbd0a360e1245 /lib/pleroma/web/common_api/utils.ex | |
parent | 1306b92997dc6e76e5d617d529dbc229d5aee200 (diff) | |
parent | 00d17520314e3591caaa7ab4ca39c6227a6bdf15 (diff) | |
download | pleroma-39ed608b13f9204e0503311c7394934b01501ab8.tar.gz |
Merge branch 'develop' into gun
Diffstat (limited to 'lib/pleroma/web/common_api/utils.ex')
-rw-r--r-- | lib/pleroma/web/common_api/utils.ex | 2 |
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")} |