mirror of
https://github.com/discourse/discourse.git
synced 2025-01-30 05:34:03 +08:00
FIX: parameterize tag_id
This commit is contained in:
parent
637bef0c3c
commit
18f50ca01a
|
@ -368,7 +368,7 @@ class ListController < ApplicationController
|
||||||
def build_topic_list_options
|
def build_topic_list_options
|
||||||
options = {}
|
options = {}
|
||||||
params[:page] = params[:page].to_i rescue 1
|
params[:page] = params[:page].to_i rescue 1
|
||||||
params[:tags] = [params[:tag_id]] if params[:tag_id].present? && guardian.can_tag_pms?
|
params[:tags] = [params[:tag_id].parameterize] if params[:tag_id].present? && guardian.can_tag_pms?
|
||||||
|
|
||||||
TopicQuery.public_valid_options.each do |key|
|
TopicQuery.public_valid_options.each do |key|
|
||||||
options[key] = params[key]
|
options[key] = params[key]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user