UX: do not notify ongoing invitees when only editing tags
This commit is contained in:
parent
258ec90a65
commit
88e26b26b6
|
@ -558,6 +558,12 @@ after_initialize do
|
||||||
|
|
||||||
if respond_to?(:add_post_revision_notifier_recipients)
|
if respond_to?(:add_post_revision_notifier_recipients)
|
||||||
add_post_revision_notifier_recipients do |post_revision|
|
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 = []
|
ids = []
|
||||||
post = post_revision.post
|
post = post_revision.post
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue