Fix #3323: Exclude post replacements from Mod Actions.

This commit is contained in:
evazion
2017-11-17 12:52:12 -06:00
parent 93767c3023
commit 26679dd7ab
2 changed files with 1 additions and 11 deletions

View File

@@ -56,7 +56,6 @@ class PostReplacement < ApplicationRecord
if md5_changed
post.comments.create!({creator: User.system, body: comment_replacement_message, do_not_bump_post: true}, without_protection: true)
ModAction.log(modaction_replacement_message)
else
post.queue_backup
end
@@ -123,10 +122,6 @@ class PostReplacement < ApplicationRecord
%("#{creator.name}":[/users/#{creator.id}] replaced this post with a new image:\n\n#{replacement_message})
end
def modaction_replacement_message
"replaced post ##{post.id}:\n\n#{replacement_message}"
end
def replacement_message
linked_source = linked_source(replacement_url)
linked_source_was = linked_source(post.source_was)