diff options
author | marty hiatt <martianhiatus@riseup.net> | 2024-08-06 13:05:23 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus@riseup.net> | 2024-08-06 13:05:23 +0200 |
commit | efd5b6c82c109e2bc10bb15d0ffc9952bb4e5437 (patch) | |
tree | 35706621b74b2c50fd6904c2acf2631f8a698576 /lisp | |
parent | f832ad6a57406a44dc11a683bcf9369a0587cb4a (diff) |
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.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/mastodon.el | 4 |
1 files changed, 3 insertions, 1 deletions
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) |