A platform for community discussion. Free, open, simple.
Revert "FIX: don't send post edit notification when hidden tags are changed"
Neil Lalondedd1a034e7b20
diff --git a/lib/post_revisor.rb b/lib/post_revisor.rbindex 6189a81ca9c..01447f4253d 100644--- a/lib/post_revisor.rb+++ b/lib/post_revisor.rb@@ -444,7 +444,6 @@ class PostRevisorreturn if @skip_revision# don't create an empty revision if something failedreturn unless successfully_saved_post_and_topic- return if only_hidden_tags_changed?@version_changed ? create_revision : update_revisionenddiff --git a/spec/components/post_revisor_spec.rb b/spec/components/post_revisor_spec.rbindex 1cd9ddea2f7..5231efdf98c 100644--- a/spec/components/post_revisor_spec.rb+++ b/spec/components/post_revisor_spec.rb@@ -753,12 +753,6 @@ describe PostRevisor doexpect(result).to eq(true)}.to_not change { topic.reload.bumped_at }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 }- endendend