[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/mastodon f368ce2919 13/76: refactor stray plstore token ch
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/mastodon f368ce2919 13/76: refactor stray plstore token check. |
Date: |
Sun, 30 Mar 2025 13:01:45 -0400 (EDT) |
branch: elpa/mastodon
commit f368ce2919bd2126f7a659ef57fd21c0d10ca951
Author: marty hiatt <martianhiatus@disroot.org>
Commit: marty hiatt <martianhiatus@disroot.org>
refactor stray plstore token check.
re-fix auth-source plstore check
---
lisp/mastodon-auth.el | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/lisp/mastodon-auth.el b/lisp/mastodon-auth.el
index 4a8021fae8..e77a86febd 100644
--- a/lisp/mastodon-auth.el
+++ b/lisp/mastodon-auth.el
@@ -216,11 +216,10 @@ Generate/save token if none known yet."
;; if auth source enabled, but we have an access token in plstore,
;; error out, tell user to remove plstore and start over:
((and mastodon-auth-use-auth-source
- (let* ((plstore (plstore-open mastodon-client--token-file))
- (entry
- (plstore-get plstore
- (format "user-%s" mastodon-active-user))))
- (plist-get (cdr entry) :access_token)))
+ (let ((entry (mastodon-client--general-read
+ (concat "user-"
+ (mastodon-client--form-user-from-vars)))))
+ (plist-get entry :access_token)))
(user-error "You have enabled auth source, but there is an access token\
in your plstore. Call `mastodon-forget-all-logins', and try again.\
If you believe this message is in error, please contact us on the\
- [nongnu] elpa/mastodon 26b0368544 24/76: adjust error message re access token in two places, (continued)
- [nongnu] elpa/mastodon 26b0368544 24/76: adjust error message re access token in two places, ELPA Syncer, 2025/03/30
- [nongnu] elpa/mastodon 3743eb6299 32/76: http: use built-in url.el status function., ELPA Syncer, 2025/03/30
- [nongnu] elpa/mastodon ab42aaf4c4 33/76: return val for --make-user-active, copy-seq for cl-remf, ELPA Syncer, 2025/03/30
- [nongnu] elpa/mastodon b92395439a 36/76: client: fetch -- handle instance response error, ELPA Syncer, 2025/03/30
- [nongnu] elpa/mastodon 308e70c4e6 10/76: auth: user-error not error in get-token, ELPA Syncer, 2025/03/30
- [nongnu] elpa/mastodon 7f3516e9d8 14/76: client: store token, revert to using full handle for plstore key., ELPA Syncer, 2025/03/30
- [nongnu] elpa/mastodon a4f39adc80 16/76: auth: note re updates to auth-source file, ELPA Syncer, 2025/03/30
- [nongnu] elpa/mastodon 2e3d9d97b1 19/76: autoload forget-all-logins, ELPA Syncer, 2025/03/30
- [nongnu] elpa/mastodon 79104659e6 27/76: update user notice string for unset vars., ELPA Syncer, 2025/03/30
- [nongnu] elpa/mastodon 328a18f5b2 46/76: full image display: message bindings if multiple images. #666, ELPA Syncer, 2025/03/30
- [nongnu] elpa/mastodon f368ce2919 13/76: refactor stray plstore token check.,
ELPA Syncer <=
- [nongnu] elpa/mastodon c4b024c2a7 18/76: readme re auth source tokens, ELPA Syncer, 2025/03/30
- [nongnu] elpa/mastodon 8e3cb0fe2f 22/76: fix keyword typo. #671., ELPA Syncer, 2025/03/30
- [nongnu] elpa/mastodon 7988d26e29 28/76: client: add check to client--fetch., ELPA Syncer, 2025/03/30
- [nongnu] elpa/mastodon e5be6639c1 30/76: client: reimplement badly written functions, ELPA Syncer, 2025/03/30
- [nongnu] elpa/mastodon e8a8b15b0e 34/76: client-tests: some hack fixes WIP, ELPA Syncer, 2025/03/30
- [nongnu] elpa/mastodon d859c5d9ed 35/76: indent client-tests, ELPA Syncer, 2025/03/30
- [nongnu] elpa/mastodon a1e525dacc 39/76: refactor mastodon-auth--plstore-access-token-member + test it. #671, ELPA Syncer, 2025/03/30
- [nongnu] elpa/mastodon 9a2bee2424 40/76: Merge branch 'token-encrypt' into develop, ELPA Syncer, 2025/03/30
- [nongnu] elpa/mastodon a8baf9bbcb 45/76: implement full sized image cycling. #666., ELPA Syncer, 2025/03/30
- [nongnu] elpa/mastodon 558d8aea5c 42/76: use poll symbol in toots with polls, like in notifs, ELPA Syncer, 2025/03/30