UX: do not notify ongoing invitees when only editing tags

UX: do not notify ongoing invitees when only editing tags

diff --git a/plugin.rb b/plugin.rb
index 0d0f1d6..3aab315 100644
--- a/plugin.rb
+++ b/plugin.rb
@@ -558,6 +558,12 @@ after_initialize do
 
     if respond_to?(:add_post_revision_notifier_recipients)
       add_post_revision_notifier_recipients do |post_revision|
+        # next if no modifications
+        next if !post_revision.modifications.present?
+
+        # do no notify recipients when only updating tags
+        next if post_revision.modifications.keys == 'tags'
+
         ids = []
         post = post_revision.post
 

GitHub sha: 88e26b26

Is modifications.keys just a string? The plural would suggest it’s an array?

How about changing just the category?

ooops yes that’s a mistake, should be ['tags'] I would have sworn I did this :sweat:

I honestly don’t think the tag use case is a big use case so I don’t want to be pro-active on this, will see if people request it.

1 Like