From 74394adc4763c56082f72f7c7f2ccafcd69447db Mon Sep 17 00:00:00 2001 From: ccd0 Date: Tue, 27 Jun 2017 15:20:48 -0700 Subject: [PATCH] Support searching for custom flags in archive. #1403 --- src/Menu/ArchiveLink.coffee | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Menu/ArchiveLink.coffee b/src/Menu/ArchiveLink.coffee index a099ccc79..e110bb310 100644 --- a/src/Menu/ArchiveLink.coffee +++ b/src/Menu/ArchiveLink.coffee @@ -38,15 +38,19 @@ ArchiveLink = true else (post) -> + typeParam = if type is 'country' and post.info.flagCodeTroll + 'tag' + else + type value = if type is 'country' - post.info.flagCode + post.info.flagCode or post.info.flagCodeTroll else Filter[type] post # We want to parse the exact same stuff as the filter does already. return false unless value el.href = Redirect.to 'search', boardID: post.board.ID - type: type + type: typeParam value: value isSearch: true true