diff options
author | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2023-10-14 09:57:34 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2023-10-14 09:57:34 +0200 |
commit | 2b2d6b03ba7837f927b6c69ac44b78ac8b7789d6 (patch) | |
tree | 2fc9b427d597ff4b325a61d7a59846ee06b9a535 /lisp | |
parent | 35313fad4331ddd441370ff0401fe779269a7034 (diff) |
search check type not data before inserting. fixes b-spec
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/mastodon-search.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/mastodon-search.el b/lisp/mastodon-search.el index ee1edff..2a2a995 100644 --- a/lisp/mastodon-search.el +++ b/lisp/mastodon-search.el @@ -186,19 +186,19 @@ ACCOUNT-ID means limit search to that account, for \"statuses\" type only." (mastodon-search-mode) ;; user results: (mastodon-search--format-heading (upcase type)) - (when accts + (when (equal type "accounts") (mastodon-search--insert-users-propertized accts :note) (mastodon-tl--set-buffer-spec buffer "search" 'mastodon-views--insert-users-propertized-note nil params)) ;; hashtag results: - (when tags + (when (equal type "hashtags") (mastodon-search--print-tags tags) (mastodon-tl--set-buffer-spec buffer "search" 'mastodon-search--print-tags nil params)) ;; status results: - (when statuses + (when (equal type "statuses") (mapc #'mastodon-tl--toot statuses) (mastodon-tl--set-buffer-spec buffer "search" 'mastodon-tl--timeline |