aboutsummaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-10-31 11:08:30 +0100
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-10-31 11:08:30 +0100
commitd93d1f15b7b02e7120ca2544b0c40295e6f62a09 (patch)
treed397818f203ad519d098a2ddb7819232f5491cce /lisp
parent36382243a2a9278837a63d677cb94203bd01ad6a (diff)
toot-mode-hook: profile-fetch-server-account-settings
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mastodon-toot.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el
index bcf9c83..9d2d02d 100644
--- a/lisp/mastodon-toot.el
+++ b/lisp/mastodon-toot.el
@@ -76,6 +76,7 @@
(autoload 'mastodon-toot "mastodon")
(autoload 'mastodon-profile--get-source-pref "mastodon-profile")
(autoload 'mastodon-profile--update-preference "mastodon-profile")
+(autoload 'mastodon-profile-fetch-server-account-settings "mastodon-profile")
(autoload 'mastodon-tl--render-text "mastodon-tl")
;; for mastodon-toot--translate-toot-text
@@ -1187,6 +1188,9 @@ a draft into the buffer."
(when initial-text
(insert initial-text))))
+;;;###autoload
+(add-hook 'mastodon-toot-mode-hook #'mastodon-profile-fetch-server-account-settings)
+
(define-minor-mode mastodon-toot-mode
"Minor mode to capture Mastodon toots."
:group 'mastodon-toot