diff options
author | martianh <martianh@noreply.codeberg.org> | 2022-12-11 21:20:24 +0000 |
---|---|---|
committer | martianh <martianh@noreply.codeberg.org> | 2022-12-11 21:20:24 +0000 |
commit | 7aca03bdc678095a1348d41d55a1cbac98558f11 (patch) | |
tree | 2d7691955c268027a8aec6bafd33b4e72118b532 /lisp | |
parent | 8db62b46a141dc862cee6e90afc935964a55b9d4 (diff) | |
parent | fabe373dedeae535726434527870e65496044e58 (diff) |
Merge pull request 'Use mastodon-toot--count-toot-chars when validating toot length' (#346) from sachac/mastodon.el:max-length into develop
Reviewed-on: https://codeberg.org/martianh/mastodon.el/pulls/346
Diffstat (limited to 'lisp')
-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.")) |