UX: do not notify ongoing invitees when only editing tags

This commit is contained in:
jjaffeux 2020-09-04 16:02:40 +02:00
parent 258ec90a65
commit 88e26b26b6
1 changed files with 6 additions and 0 deletions

View File

@ -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