DEV: remove another deprecation notice when serializing args (#31240)

to background jobs
This commit is contained in:
Régis Hanol
2025-02-09 15:10:41 +01:00
committed by GitHub
parent 54a52e5691
commit 85e82e7be3

View File

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