Bug #14017
closed
Editing of blog post leads to group notification
Added by Matt Gold over 3 years ago.
Updated over 3 years ago.
Category name:
Group Blogs
Description
Hi Boone and Ray -- it looks like we've had a reemergence of an old issue (I'll link some associated tickets after submitting this) -- Luke edited a CUNY Pie post today ( https://cunypie.commons.gc.cuny.edu/2009/09/18/two-larges-at-lombardis/ ), which triggered an email notification to the associated group. While it was awesome to be reminded of good pizza, a notification should not have gone out.
- Related to Bug #8535: Blog post edit triggers group notification added
- Related to Bug #8183: Edit of Post creates notification emails added
This email was sent because the blog post is very old and there was never an activity item generated for it. So when Luke made an update to the post, the BP Groupblog plugin generated an activity item for it and our group email subscription plugin will send this out to the group.
We can automatically add some logic to block edited posts that do not have a corresponding activity item and are older than, let's say, one month (or one week) from being sent out. What does everyone think?
- Category name set to Group Blogs
- Target version set to 1.18.6
We can automatically add some logic to block edited posts that do not have a corresponding activity item and are older than, let's say, one month (or one week) from being sent out. What does everyone think?
Yes, this seems right to me. Emphasis on the "do not have a corresponding activity item", as this will effectively limit the block to really old posts.
- Target version changed from 1.18.6 to 1.18.7
- Target version changed from 1.18.7 to 1.18.8
- Status changed from Assigned to Staged for Production Release
Done: https://github.com/cuny-academic-commons/cac/commit/19cc2140cb271da90450b70097914cbb9251cfc7
If the post creation date is older than one month of the current date, the groupblog post will no longer send an email to the group. I've tested this by removing the activity item of an older groupblog post and making an edit to that post in both the Block Editor and the Classic Editor and this no longer triggers an email to send.
I also tested with publishing a new groupblog post and a future groupblog post to see if a group email would still be triggered and that works as expected.
If we want to change the age threshold from one month to either a longer or shorter range, let me know.
I'm not sure that a group notification should ever be sent for an edited blog post, honestly. I would lean towards no. Luke, Boone, Laurie -- what do you think?
I agree with Matt - no notification for edited blog posts.
Getting additional notifications for posts could causes confusion, and people likely do not want a notification sent every time they edit.
I agree with Matt - no notification for edited blog posts.
+1.
Once this fix is live, I should clarify that you shouldn't ever receive an email for groupblog posts unless:
- A) The activity item for the groupblog post was deleted manually from the group activity stream or did not exist previously because the post is very old (like Luke's example); and
- B) The post creation date for the groupblog post is as recent as one month from the current date (this is the new addition)
A) should rarely occur because the activity item for the groupblog post doesn't get removed without some form of manual intervention and B) helps to prevent old posts that do not have a corresponding activity item from sending an email.
- Status changed from Staged for Production Release to Resolved
Also available in: Atom
PDF