Support searching for custom flags in archive. #1403
This commit is contained in:
parent
79f00c1edd
commit
74394adc47
@ -38,15 +38,19 @@ ArchiveLink =
|
|||||||
true
|
true
|
||||||
else
|
else
|
||||||
(post) ->
|
(post) ->
|
||||||
|
typeParam = if type is 'country' and post.info.flagCodeTroll
|
||||||
|
'tag'
|
||||||
|
else
|
||||||
|
type
|
||||||
value = if type is 'country'
|
value = if type is 'country'
|
||||||
post.info.flagCode
|
post.info.flagCode or post.info.flagCodeTroll
|
||||||
else
|
else
|
||||||
Filter[type] post
|
Filter[type] post
|
||||||
# We want to parse the exact same stuff as the filter does already.
|
# We want to parse the exact same stuff as the filter does already.
|
||||||
return false unless value
|
return false unless value
|
||||||
el.href = Redirect.to 'search',
|
el.href = Redirect.to 'search',
|
||||||
boardID: post.board.ID
|
boardID: post.board.ID
|
||||||
type: type
|
type: typeParam
|
||||||
value: value
|
value: value
|
||||||
isSearch: true
|
isSearch: true
|
||||||
true
|
true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user