emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/mastodon 2b2d6b03ba 2/5: search check type not data before


From: ELPA Syncer
Subject: [nongnu] elpa/mastodon 2b2d6b03ba 2/5: search check type not data before inserting. fixes b-spec
Date: Sat, 14 Oct 2023 07:01:12 -0400 (EDT)

branch: elpa/mastodon
commit 2b2d6b03ba7837f927b6c69ac44b78ac8b7789d6
Author: marty hiatt <martianhiatus [a t] riseup [d o t] net>
Commit: marty hiatt <martianhiatus [a t] riseup [d o t] net>

    search check type not data before inserting. fixes b-spec
---
 lisp/mastodon-search.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lisp/mastodon-search.el b/lisp/mastodon-search.el
index ee1edff42c..2a2a9952ee 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]