aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-tl.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus@riseup.net>2024-10-12 17:30:41 +0200
committermarty hiatt <martianhiatus@riseup.net>2024-10-12 17:30:41 +0200
commit64a0a0a276b5cadc8b4d98ee28ef1c23b4a799b7 (patch)
treec01e61c4b846de5033772209a1b9a27d2d9e4a05 /lisp/mastodon-tl.el
parent3190c2833a1fbaeafe82585e7e6d494f8081b597 (diff)
use byline-username/-handle in notifications--byline-accounts
Diffstat (limited to 'lisp/mastodon-tl.el')
-rw-r--r--lisp/mastodon-tl.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index 0f04e58..ca5ec6f 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -589,9 +589,9 @@ Do so if type of status at poins is not follow_request/follow."
(string= type "follow")) ; no counts for these
(message "%s" echo)))))
-(defun mastodon-tl--byline-username (toot)
+(defun mastodon-tl--byline-username (toot &optional account)
"Format a byline username from account in TOOT."
- (let-alist (alist-get 'account toot)
+ (let-alist (or account (alist-get 'account toot))
(propertize (if (not (string-empty-p .display_name))
.display_name
.username)
@@ -609,10 +609,10 @@ Do so if type of status at poins is not follow_request/follow."
(string-suffix-p "-following*" (buffer-name)))
(mastodon-tl--format-byline-help-echo toot)))))
-(defun mastodon-tl--byline-handle (toot &optional domain)
+(defun mastodon-tl--byline-handle (toot &optional domain account)
"Format a byline handle from account in TOOT.
DOMAIN is optionally added to the handle."
- (let-alist (alist-get 'account toot)
+ (let-alist (or account (alist-get 'account toot))
(propertize (concat "@" .acct
(when domain
(concat "@"
@@ -621,7 +621,7 @@ DOMAIN is optionally added to the handle."
'face 'mastodon-handle-face
'mouse-face 'highlight
'mastodon-tab-stop 'user-handle
- 'account .account
+ 'account account
'shr-url .url
'keymap mastodon-tl--link-keymap
'mastodon-handle (concat "@" .acct)