From 9bd49d3bbab945c625c935b9025dcd20c8e1e58d Mon Sep 17 00:00:00 2001 From: mousebot Date: Fri, 11 Mar 2022 13:11:48 +0100 Subject: make profile--show-user also work on profile headers --- lisp/mastodon-profile.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lisp') 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)))) -- cgit v1.2.3