diff options
author | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2023-04-30 15:36:05 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2023-04-30 15:36:05 +0200 |
commit | 6eff4da01e2fbf21b005dc867f290406bc5a7c5d (patch) | |
tree | bfcf5baed32953905ca1890e8a0a4eba8b7c41ab /lisp/mastodon-toot.el | |
parent | 58a5b6444c9f5d0f0b07e37a08e869cb74bef684 (diff) |
docstring CW arg add
Diffstat (limited to 'lisp/mastodon-toot.el')
-rw-r--r-- | lisp/mastodon-toot.el | 3 |
1 files changed, 2 insertions, 1 deletions
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) |