From 6eff4da01e2fbf21b005dc867f290406bc5a7c5d Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Sun, 30 Apr 2023 15:36:05 +0200 Subject: docstring CW arg add --- lisp/mastodon-toot.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lisp') diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el index 269a9b4..d643e37 100644 --- a/lisp/mastodon-toot.el +++ b/lisp/mastodon-toot.el @@ -1560,7 +1560,8 @@ REPLY-JSON is the full JSON of the toot being replied to." (defun mastodon-toot--count-toot-chars (toot-string &optional cw) "Count the characters in TOOT-STRING. URLs always = 23, and domain names of handles are not counted. -This is how mastodon does it." +This is how mastodon does it. +CW is the content warning, which contributes to the character count." (with-temp-buffer (switch-to-buffer (current-buffer)) (insert toot-string) -- cgit v1.2.3