Fix enforcement of character limits

This commit is contained in:
Mark Felder 2020-03-10 13:08:00 -05:00
commit 5af798f246
2 changed files with 4 additions and 2 deletions

View file

@ -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")}