aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-11-26 15:08:32 +0100
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-11-26 15:08:32 +0100
commitc6281d6579cdcae5d2e1200a35b4f09a4406496e (patch)
treecd0c1914edb890e7005f12434fb6891bf47ea5a3
parentae8f6c6d7dfdd8048c8bab21b3afd81f981fbc96 (diff)
remove --view-author-profile, replace with --get-toot-author
-rw-r--r--lisp/mastodon-profile.el8
-rw-r--r--lisp/mastodon-tl.el2
2 files changed, 1 insertions, 9 deletions
diff --git a/lisp/mastodon-profile.el b/lisp/mastodon-profile.el
index 54f0e84..91103f1 100644
--- a/lisp/mastodon-profile.el
+++ b/lisp/mastodon-profile.el
@@ -737,14 +737,6 @@ IMG_TYPE is the JSON key from the account data."
(message "Loading your profile...")
(mastodon-profile--show-user (mastodon-auth--get-account-name)))
-(defun mastodon-profile--view-author-profile ()
- "View the profile of author of present toot."
- (interactive)
- (let* ((toot-json (mastodon-tl--property 'toot-json))
- (acct (alist-get 'account toot-json))
- (handle (alist-get 'acct acct)))
- (mastodon-profile--show-user handle)))
-
(defun mastodon-profile--account-field (account field)
"Return FIELD from the ACCOUNT.
FIELD is used to identify regions under 'account"
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index ce2062d..dccf36a 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -254,7 +254,7 @@ types of mastodon links and not just shr.el-generated ones.")
(when (require 'mpv nil :no-error)
(let ((map (make-sparse-keymap)))
(define-key map (kbd "<C-return>") 'mastodon-tl--mpv-play-video-from-byline)
- (define-key map (kbd "<return>") 'mastodon-profile--view-author-profile)
+ (define-key map (kbd "<return>") 'mastodon-profile--get-toot-author)
(keymap-canonicalize map)))
"The keymap to be set for the author byline.
It is active where point is placed by `mastodon-tl--goto-next-toot.'")