aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-toot.el
diff options
context:
space:
mode:
authormartianh <martianh@noreply.codeberg.org>2022-12-11 21:20:24 +0000
committermartianh <martianh@noreply.codeberg.org>2022-12-11 21:20:24 +0000
commit7aca03bdc678095a1348d41d55a1cbac98558f11 (patch)
tree2d7691955c268027a8aec6bafd33b4e72118b532 /lisp/mastodon-toot.el
parent8db62b46a141dc862cee6e90afc935964a55b9d4 (diff)
parentfabe373dedeae535726434527870e65496044e58 (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/mastodon-toot.el')
-rw-r--r--lisp/mastodon-toot.el2
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."))