diff options
author | marty hiatt <martianhiatus@riseup.net> | 2024-10-20 10:11:40 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus@riseup.net> | 2024-10-20 10:11:40 +0200 |
commit | bfb2b4b2276622830b7a5ed1066c64ef6d5693e8 (patch) | |
tree | 50d07d470b247a39ac9618e4af92f57e8a5b7b75 /lisp/mastodon-search.el | |
parent | 9aeb84f4fd781f931e2e78573cbd85edd2a22db7 (diff) |
refactor display-or-uname
Diffstat (limited to 'lisp/mastodon-search.el')
-rw-r--r-- | lisp/mastodon-search.el | 4 |
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))) |