From efd5b6c82c109e2bc10bb15d0ffc9952bb4e5437 Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Tue, 6 Aug 2024 13:05:23 +0200 Subject: mastodon (function): only return cred acc if loading new tl if we find an existing buffer, just pop to it without getting cred acc. if user already running mastodon.el, no need to update cred acc. --- lisp/mastodon.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lisp') diff --git a/lisp/mastodon.el b/lisp/mastodon.el index 7ac980c..8a4fc07 100644 --- a/lisp/mastodon.el +++ b/lisp/mastodon.el @@ -298,9 +298,11 @@ See `mastodon-toot-display-orig-in-reply-buffer'.") (string-prefix-p "*mastodon-" (buffer-name x)) (get-buffer x))) (buffer-list))))) ; catch any other masto buffer - (mastodon-return-credential-account :force) (if buffer (pop-to-buffer buffer '(display-buffer-same-window)) + ;; we need to update credential-account in case setting have been changed + ;; outside mastodon.el in the meantime: + (mastodon-return-credential-account :force) (mastodon-tl--get-home-timeline) (message "Loading fediverse account %s on %s..." (mastodon-auth--user-acct) -- cgit v1.2.3