aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-search.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus@riseup.net>2024-10-20 10:48:21 +0200
committermarty hiatt <martianhiatus@riseup.net>2024-10-20 10:48:21 +0200
commitc6149ab2174a05bb7d42d23aa5eba669c6fc8cee (patch)
tree3283a90d37a173e0f063b6cc7685bb5b0f2de65f /lisp/mastodon-search.el
parentc7305179fcca04ebdf090c93dabd2c82bad5b6ff (diff)
parentbfb2b4b2276622830b7a5ed1066c64ef6d5693e8 (diff)
Merge branch 'map-nested-elt' into develop
Diffstat (limited to 'lisp/mastodon-search.el')
-rw-r--r--lisp/mastodon-search.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/mastodon-search.el b/lisp/mastodon-search.el
index 262f75c..cead17e 100644
--- a/lisp/mastodon-search.el
+++ b/lisp/mastodon-search.el
@@ -331,9 +331,7 @@ If NOTE is non-nil, include user's profile note. This is also
(defun mastodon-search--get-user-info (account)
"Get user handle, display name, account URL and profile note from ACCOUNT."
- (list (if (not (string-empty-p (alist-get 'display_name account)))
- (alist-get 'display_name account)
- (alist-get 'username account))
+ (list (mastodon-tl--display-or-uname account)
(alist-get 'acct account)
(alist-get 'url account)
(alist-get 'note account)))