mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 15:05:24 +08:00
3d554aa10e
Performing a `Delete User`/`Delete and Block User` reviewable actions for a queued post reviewable from the `review.show` route results in an error popup even if the action completes successfully. This happens because unlike other reviewable types, a user delete action on a queued post reviewable results in the deletion of the reviewable itself. A subsequent attempt to reload the reviewable record results in 404. The deletion happens as part of the call to `UserDestroyer` which includes a step for destroying reviewables created by the user being destroyed. At the root of this is the creator of the queued post being set as the creator of the reviewable as instead of the system user. This change assigns the creator of the reviewable to the system user and uses the more approapriate `target_created_by` column for the creator of the post being queued. |
||
---|---|---|
.. | ||
allowed_pm_users.rb | ||
api_key_fabricator.rb | ||
associated_group_fabricator.rb | ||
badge_fabricator.rb | ||
bookmark_fabricator.rb | ||
category_fabricator.rb | ||
category_group_fabricator.rb | ||
color_scheme_color_fabricator.rb | ||
color_scheme_fabricator.rb | ||
dimissed_topic_user.rb | ||
do_not_disturb_fabricator.rb | ||
email_change_request_fabricator.rb | ||
email_log_fabricator.rb | ||
email_token_fabricator.rb | ||
embeddable_host_fabricator.rb | ||
external_upload_stub_fabricator.rb | ||
flag_fabricator.rb | ||
form_template_fabricator.rb | ||
group_fabricator.rb | ||
group_history_fabricator.rb | ||
group_request_fabricator.rb | ||
group_user_fabricator.rb | ||
ignored_user_fabricator.rb | ||
incoming_email_fabricator.rb | ||
incoming_link_fabricator.rb | ||
invite_fabricator.rb | ||
invited_user_fabricator.rb | ||
like_fabricator.rb | ||
muted_user.rb | ||
notification_fabricator.rb | ||
optimized_image_fabricator.rb | ||
permalink_fabricator.rb | ||
post_action_fabricator.rb | ||
post_custom_field_fabricator.rb | ||
post_detail_fabricator.rb | ||
post_fabricator.rb | ||
post_reply_key_fabricator.rb | ||
post_revision_fabricator.rb | ||
published_page_fabricator.rb | ||
push_subscription_fabricator.rb | ||
reviewable_claimed_topic_fabricator.rb | ||
reviewable_fabricator.rb | ||
reviewable_score_fabricator.rb | ||
screened_email_fabricator.rb | ||
screened_ip_address_fabricator.rb | ||
screened_url_fabricator.rb | ||
search_log_fabricator.rb | ||
shared_draft_fabricator.rb | ||
sidebar_section_fabricator.rb | ||
sidebar_section_link_fabricator.rb | ||
sidebar_url_fabricator.rb | ||
single_sign_on_record_fabricator.rb | ||
skipped_email_log_fabricator.rb | ||
tag_fabricator.rb | ||
tag_group_fabricator.rb | ||
tag_group_permission_fabricator.rb | ||
theme_fabricator.rb | ||
theme_field_fabricator.rb | ||
topic_allowed_group_fabricator.rb | ||
topic_allowed_user_fabricator.rb | ||
topic_embed_fabricator.rb | ||
topic_fabricator.rb | ||
topic_tag_fabricator.rb | ||
topic_timer_fabricator.rb | ||
topic_user_fabricator.rb | ||
translation_override_fabricator.rb | ||
upload_fabricator.rb | ||
user_action_fabricator.rb | ||
user_api_key_fabricator.rb | ||
user_avatar_fabricator.rb | ||
user_badge_fabricator.rb | ||
user_email_fabricator.rb | ||
user_fabricator.rb | ||
user_field_fabricator.rb | ||
user_field_option_fabricator.rb.rb | ||
user_history_fabricator.rb | ||
user_option_fabricator.rb | ||
user_profile_fabricator.rb | ||
user_second_factor_fabricator.rb | ||
user_security_key_fabricator.rb | ||
user_status_fabricator.rb | ||
watched_word_fabricator.rb | ||
web_crawler_request_fabricator.rb | ||
web_hook_fabricator.rb |