mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
DEV: remove another deprecation notice when serializing args (#31240)
to background jobs
This commit is contained in:
@ -229,7 +229,7 @@ class PostsController < ApplicationController
|
||||
|
||||
raise Discourse::NotFound if post.blank?
|
||||
|
||||
post.image_sizes = params[:image_sizes] if params[:image_sizes].present?
|
||||
post.image_sizes = params[:image_sizes].permit!.to_h if params[:image_sizes].present?
|
||||
|
||||
if !guardian.public_send("can_edit?", post) && post.user_id == current_user.id &&
|
||||
post.edit_time_limit_expired?(current_user)
|
||||
|
Reference in New Issue
Block a user