Fix enforcement of character limits
[akkoma] / lib / pleroma / web / common_api / utils.ex
index 8746273c465c673ec782e732b7dbfa9b8fe84867..348fdedf10be2228a59b2cba6c65cf8840890b04 100644 (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")}