mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 23:31:18 +08:00
FEATURE: filter personal messages by tags
This commit is contained in:
@ -134,6 +134,7 @@ class ListController < ApplicationController
|
||||
def self.generate_message_route(action)
|
||||
define_method("#{action}") do
|
||||
list_opts = build_topic_list_options
|
||||
list_opts[:show_pm_tags] = true if guardian.can_tag_pms?
|
||||
target_user = fetch_user_from_params({ include_inactive: current_user.try(:staff?) }, [:user_stat, :user_option])
|
||||
guardian.ensure_can_see_private_messages!(target_user.id)
|
||||
list = generate_list_for(action.to_s, target_user, list_opts)
|
||||
|
Reference in New Issue
Block a user