diff options
author | mousebot <mousebot@riseup.net> | 2022-02-18 15:20:05 +0100 |
---|---|---|
committer | mousebot <mousebot@riseup.net> | 2022-02-18 15:20:05 +0100 |
commit | 678b572132df07265f4d745e579d23162a67cca0 (patch) | |
tree | 56f39cd248fe0981ea8d6d8e771a4caf06a886af /lisp | |
parent | 0efc846bed8443c1ed38bdb15f3afc4f052b7615 (diff) |
handle empty display_name in search--get-user-info
ensures we hever have an empty author name slot
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/mastodon-search.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/mastodon-search.el b/lisp/mastodon-search.el index e1ca81a..10500ad 100644 --- a/lisp/mastodon-search.el +++ b/lisp/mastodon-search.el @@ -156,7 +156,9 @@ This is also called by `mastodon-tl--get-follow-suggestions'." (defun mastodon-search--get-user-info (account) "Get user handle, display name, account URL and profile note from ACCOUNT." - (list (alist-get 'display_name account) + (list (if (not (equal "" (alist-get 'display_name account))) + (alist-get 'display_name account) + (alist-get 'username account)) (alist-get 'acct account) (alist-get 'url account) (alist-get 'note account))) |