FIX: Include post in staff action logs when silencing a user

This commit is contained in:
Robin Ward
2018-02-13 15:33:15 -05:00
parent ed114177e7
commit 7348513848
5 changed files with 39 additions and 10 deletions

View File

@ -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(