aboutsummaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authormousebot <mousebot@riseup.net>2022-03-11 13:11:48 +0100
committermousebot <mousebot@riseup.net>2022-03-11 13:11:48 +0100
commit9bd49d3bbab945c625c935b9025dcd20c8e1e58d (patch)
tree21d62ccea38107033de396f146d54d11c5bd829d /lisp
parent5239dc08a361c98a484447b2848c4b2997e072c6 (diff)
make profile--show-user also work on profile headers
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mastodon-profile.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/mastodon-profile.el b/lisp/mastodon-profile.el
index 793d8f9..89dd02d 100644
--- a/lisp/mastodon-profile.el
+++ b/lisp/mastodon-profile.el
@@ -400,7 +400,8 @@ If toot is a boost, opens the profile of the booster."
"Query for USER-HANDLE from current status and show that user's profile."
(interactive
(list
- (if (not (get-text-property (point) 'toot-json))
+ (if (and (not (string-prefix-p "accounts" (mastodon-tl--get-endpoint))) ;profile view
+ (not (get-text-property (point) 'toot-json)))
(message "Looks like there's no toot or user at point?")
(let ((user-handles (mastodon-profile--extract-users-handles
(mastodon-profile--toot-json))))