From 2b2d6b03ba7837f927b6c69ac44b78ac8b7789d6 Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Sat, 14 Oct 2023 09:57:34 +0200 Subject: search check type not data before inserting. fixes b-spec --- lisp/mastodon-search.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lisp') 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 -- cgit v1.2.3