mirror of
https://github.com/discourse/discourse.git
synced 2026-07-29 15:54:48 -05:00
Revert "FIX: don't send post edit notification when hidden tags are changed"
This commit is contained in:
@@ -444,7 +444,6 @@ class PostRevisor
|
|||||||
return if @skip_revision
|
return if @skip_revision
|
||||||
# don't create an empty revision if something failed
|
# don't create an empty revision if something failed
|
||||||
return unless successfully_saved_post_and_topic
|
return unless successfully_saved_post_and_topic
|
||||||
return if only_hidden_tags_changed?
|
|
||||||
@version_changed ? create_revision : update_revision
|
@version_changed ? create_revision : update_revision
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -753,12 +753,6 @@ describe PostRevisor do
|
|||||||
expect(result).to eq(true)
|
expect(result).to eq(true)
|
||||||
}.to_not change { topic.reload.bumped_at }
|
}.to_not change { topic.reload.bumped_at }
|
||||||
end
|
end
|
||||||
|
|
||||||
it "doesn't create revision" do
|
|
||||||
expect {
|
|
||||||
subject.revise!(Fabricate(:admin), raw: post.raw, tags: topic.tags.map(&:name) + ['secret'])
|
|
||||||
}.to_not change { post.reload.revisions.size }
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user