diff options
author | Sacha Chua <sacha@sachachua.com> | 2022-12-08 09:13:16 -0500 |
---|---|---|
committer | Sacha Chua <sacha@sachachua.com> | 2022-12-08 09:13:16 -0500 |
commit | fabe373dedeae535726434527870e65496044e58 (patch) | |
tree | 2d7691955c268027a8aec6bafd33b4e72118b532 /lisp/mastodon-toot.el | |
parent | 8db62b46a141dc862cee6e90afc935964a55b9d4 (diff) |
Use mastodon-toot--count-toot-chars when validating toot length
* lisp/mastodon-toot.el (mastodon-toot--send): Use
mastodon-toot--count-toot-chars instead of length.
Diffstat (limited to 'lisp/mastodon-toot.el')
-rw-r--r-- | lisp/mastodon-toot.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el index a394b00..c87b3bb 100644 --- a/lisp/mastodon-toot.el +++ b/lisp/mastodon-toot.el @@ -738,7 +738,7 @@ instance to edit a toot." (length mastodon-toot--media-attachment-ids))))) (message "Something is wrong with your uploads. Wait for them to complete or try again.")) ((and mastodon-toot--max-toot-chars - (> (length toot) mastodon-toot--max-toot-chars)) + (> (mastodon-toot--count-toot-chars toot) mastodon-toot--max-toot-chars)) (message "Looks like your toot is longer than that maximum allowed length.")) ((mastodon-toot--empty-p) (message "Empty toot. Cowardly refusing to post this.")) |