FIX: Allow editing post that belongs to deleted topic

This commit is contained in:
Gerhard Schlager 2018-05-15 20:50:31 +02:00
parent 2e1b5bc8d3
commit 3464b05e41
1 changed files with 1 additions and 0 deletions

View File

@ -97,6 +97,7 @@ class PostActionNotifier
return unless post return unless post
return if post_revision.user.blank? return if post_revision.user.blank?
return if post_revision.user_id == post.user_id return if post_revision.user_id == post.user_id
return if post.topic.blank?
return if post.topic.private_message? return if post.topic.private_message?
return if SiteSetting.disable_edit_notifications && post_revision.user_id == Discourse::SYSTEM_USER_ID return if SiteSetting.disable_edit_notifications && post_revision.user_id == Discourse::SYSTEM_USER_ID