aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-toot.el
diff options
context:
space:
mode:
authormousebot <mousebot@riseup.net>2021-09-23 11:41:35 +0200
committermousebot <mousebot@riseup.net>2021-09-23 11:41:35 +0200
commitf0822a697317e2e8bf320540e7ae1c80163bc90f (patch)
tree188da44e51d4630bfac327826d5412b0f8deff57 /lisp/mastodon-toot.el
parent7bfcc9909ad7282ac41eb85b013a3845028aa531 (diff)
on delete toot, redraw current timeline or profile
Diffstat (limited to 'lisp/mastodon-toot.el')
-rw-r--r--lisp/mastodon-toot.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el
index c9184fc..d86eefd 100644
--- a/lisp/mastodon-toot.el
+++ b/lisp/mastodon-toot.el
@@ -46,6 +46,7 @@
(autoload 'mastodon-toot "mastodon")
(autoload 'mastodon-http--post-media-attachment "mastodon-http")
(autoload 'mastodon-tl--toot-id "mastodon-tl")
+(autoload 'mastodon-tl--reload-timeline-or-profile "mastodon-tl")
(defgroup mastodon-toot nil
"Tooting in Mastodon."
@@ -215,7 +216,6 @@ Remove MARKER if REMOVE is non-nil, otherwise add it."
(kill-new url)
(message "Toot URL copied to the clipboard.")))
-;; TODO redraw buffer on success?
(defun mastodon-toot--delete-toot ()
"Delete user's toot at point synchronously."
(interactive)
@@ -231,6 +231,7 @@ Remove MARKER if REMOVE is non-nil, otherwise add it."
(let ((response (mastodon-http--delete url)))
(mastodon-http--triage response
(lambda ()
+ (mastodon-tl--reload-timeline-or-profile)
(message "Toot deleted!"))))))))
(defun mastodon-toot--kill ()