Fix enforcement of character limits
This commit is contained in:
parent
841e4e4d83
commit
5af798f246
2 changed files with 4 additions and 2 deletions
|
|
@ -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")}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue