aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-tl.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-01-16 10:55:06 +0100
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-01-16 10:55:06 +0100
commit098f8b1e73e10801c55d4c470906bca6edd75251 (patch)
treece02abbc4816c29737750f1679ca618686bd3e35 /lisp/mastodon-tl.el
parent1d3f82da36a8734e5489662fc8b4a4de0de811bb (diff)
differentiate edit toot from new toot
Diffstat (limited to 'lisp/mastodon-tl.el')
-rw-r--r--lisp/mastodon-tl.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index dd17988..931fa0b 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -1417,7 +1417,10 @@ Should work in all mastodon buffers."
(let ((endpoint-fun (mastodon-tl--get-endpoint nil :no-error))
(buffer-name-fun (mastodon-tl--buffer-name nil :no-error)))
(cond (mastodon-toot-mode
- 'compose-toot)
+ ;; composing/editing:
+ (if (string= "*edit toot*" (buffer-name))
+ 'edit-toot
+ 'new-toot))
;; main timelines:
((string= "timelines/home" endpoint-fun)
'home)