diff options
| author | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2023-03-18 21:57:42 +0100 | 
|---|---|---|
| committer | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2023-03-19 13:21:37 +0100 | 
| commit | d6470dd725c0da74345e1ed8bf40822730e0c004 (patch) | |
| tree | 0e8bb82e30d1abca9a167dd292c0b6bc55c645e0 /lisp/mastodon-views.el | |
| parent | e0ee8cbfa8e0e883f800ea09dbcff844f988fffb (diff) | |
map-get-accts > map-alist, handle no results for fam folls
use tl--map-alist in views.el
Diffstat (limited to 'lisp/mastodon-views.el')
| -rw-r--r-- | lisp/mastodon-views.el | 8 | 
1 files changed, 2 insertions, 6 deletions
| diff --git a/lisp/mastodon-views.el b/lisp/mastodon-views.el index e38455b..f92a9aa 100644 --- a/lisp/mastodon-views.el +++ b/lisp/mastodon-views.el @@ -219,9 +219,7 @@ provides the JSON data."  (defun mastodon-views--print-list-set (lists)    "Print each account plus a separator for each list in LISTS."    (let ((lists-names -         (mapcar (lambda (x) -                   (alist-get 'title x)) -                 lists))) +         (mastodon-tl--map-alist 'title lists)))      (mapc (lambda (x)              (mastodon-views--print-list-accounts x)              (insert (propertize " ------------\n\n" @@ -266,9 +264,7 @@ a: add account to this list, r: remove account from this list"  (defun mastodon-views--get-lists-names ()    "Return a list of the user's lists' names."    (let ((lists (mastodon-views--get-users-lists))) -    (mapcar (lambda (x) -              (alist-get 'title x)) -            lists))) +    (mastodon-tl--map-alist 'title lists)))  (defun mastodon-views--get-list-by-name (name)    "Return the list data for list with NAME." | 
