fix missed references to tags param when navigating posts sequentially

This commit is contained in:
Albert Yi
2018-10-31 16:07:30 -07:00
parent f5012464ab
commit 9a12fc45d3

View File

@@ -5,7 +5,7 @@ class PostSearchContext
def initialize(params) def initialize(params)
@id = params[:id].to_i @id = params[:id].to_i
@seq = params[:seq] @seq = params[:seq]
@tags = params[:q].presence || "status:any" @tags = params[:q].presence || params[:tags].presence || "status:any"
end end
def post_id def post_id