diff options
author | mousebot <mousebot@riseup.net> | 2021-10-21 15:28:27 +0200 |
---|---|---|
committer | mousebot <mousebot@riseup.net> | 2021-10-21 15:28:27 +0200 |
commit | 299356ebee27abb8b97cdd4546164b9918727844 (patch) | |
tree | 961446e20075b58d5b9f80234986ea8846177d06 /lisp/mastodon.el | |
parent | c08bc9dea693388a779d5702fc6cc421353bb889 (diff) |
replies to toots adopt their visibility status by default.
this makes it so that if you reply to a direct message, your toot will also be
direct by default.
- we feed the reply's full toot JSON through the chain of functions called,
all the way down to "setup-as-reply". that way, if anything else needs to be
extracted when setting up a reply, it's all there.
Diffstat (limited to 'lisp/mastodon.el')
-rw-r--r-- | lisp/mastodon.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/mastodon.el b/lisp/mastodon.el index a06b18d..e6a01f8 100644 --- a/lisp/mastodon.el +++ b/lisp/mastodon.el @@ -206,13 +206,12 @@ Use. e.g. \"%c\" for your locale's date and time format." (message "Loading Mastodon account %s on %s..." (mastodon-auth--user-acct) mastodon-instance-url)))) ;;;###autoload -(defun mastodon-toot (&optional user reply-to-id) +(defun mastodon-toot (&optional user reply-to-id reply-json) "Update instance with new toot. Content is captured in a new buffer. - If USER is non-nil, insert after @ symbol to begin new toot. If REPLY-TO-ID is non-nil, attach new toot to a conversation." (interactive) - (mastodon-toot--compose-buffer user reply-to-id)) + (mastodon-toot--compose-buffer user reply-to-id reply-json)) ;;;###autoload (add-hook 'mastodon-mode-hook (lambda () |