mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: do not show PM topics when moving posts to an existing public topic (#6876)
This commit is contained in:
@@ -68,6 +68,7 @@ class SearchController < ApplicationController
|
||||
search_args[:search_type] = :header
|
||||
search_args[:ip_address] = request.remote_ip
|
||||
search_args[:user_id] = current_user.id if current_user.present?
|
||||
search_args[:restrict_to_archetype] = params[:restrict_to_archetype] if params[:restrict_to_archetype].present?
|
||||
|
||||
search = Search.new(params[:term], search_args)
|
||||
result = search.execute
|
||||
|
||||
Reference in New Issue
Block a user