mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 06:01:26 +08:00
FIX: Include post in staff action logs when silencing a user
This commit is contained in:
@ -289,7 +289,8 @@ class Admin::UsersController < Admin::AdminController
|
||||
silenced_till: params[:silenced_till],
|
||||
reason: params[:reason],
|
||||
message_body: message,
|
||||
keep_posts: true
|
||||
keep_posts: true,
|
||||
post_id: params[:post_id]
|
||||
)
|
||||
if silencer.silence && message.present?
|
||||
Jobs.enqueue(
|
||||
|
Reference in New Issue
Block a user