diff options
author | mousebot <mousebot@riseup.net> | 2022-02-18 16:03:26 +0100 |
---|---|---|
committer | mousebot <mousebot@riseup.net> | 2022-02-18 16:19:18 +0100 |
commit | 58e23171ef8883b08cbf6d33d9c41deaf66f87ff (patch) | |
tree | fab373bc7d465fbef8ab14493289adf9eb99a341 /lisp/mastodon-tl.el | |
parent | 868a5680953d35f66cb64f92e940f55d579c74b2 (diff) |
FIX buffers that use alt acct fetch in interactive-user-handles-get
Diffstat (limited to 'lisp/mastodon-tl.el')
-rw-r--r-- | lisp/mastodon-tl.el | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el index 2fa3526..7ba78e4 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -1319,15 +1319,15 @@ Can be called to toggle NOTIFY on users already being followed." (defun mastodon-tl--interactive-user-handles-get (action) "Get the list of user-handles for ACTION from the current toot." (let ((user-handles - ;; follow suggests / search compat: (cond ((or (equal (buffer-name) "*mastodon-follow-suggestions*") - (string-prefix-p "*mastodon-search" (buffer-name))) - (list (alist-get 'acct (mastodon-tl--property 'user-json)))) - ;; profile view follows/followers compat: - ;; but not for profile statuses: - ((when (and (string-prefix-p "accounts" (mastodon-tl--get-endpoint)) - (not (string-suffix-p "statuses" (mastodon-tl--get-endpoint)))) - (list (alist-get 'acct (mastodon-tl--property 'toot-json))))) + ;; follow suggests / search / foll requests compat: + (string-prefix-p "*mastodon-search" (buffer-name)) + (equal (buffer-name) "*mastodon-follow-requests*") + ;; profile view follows/followers compat: + ;; but not for profile statuses: + (and (string-prefix-p "accounts" (mastodon-tl--get-endpoint)) + (not (string-suffix-p "statuses" (mastodon-tl--get-endpoint))))) + (list (alist-get 'acct (mastodon-tl--property 'toot-json)))) (t (mastodon-profile--extract-users-handles (mastodon-profile--toot-json)))))) |