Bug #14017
closedEditing of blog post leads to group notification
0%
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 issues
Updated by Matt Gold almost 4 years ago
- Related to Bug #8535: Blog post edit triggers group notification added
Updated by Matt Gold almost 4 years ago
- Related to Bug #8183: Edit of Post creates notification emails added
Updated by Raymond Hoh almost 4 years ago
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?
Updated by Boone Gorges almost 4 years ago
- 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.
Updated by Boone Gorges over 3 years ago
- Target version changed from 1.18.6 to 1.18.7
Updated by Boone Gorges over 3 years ago
- Target version changed from 1.18.7 to 1.18.8
Updated by Raymond Hoh over 3 years ago
- 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.
Updated by Matt Gold over 3 years ago
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?
Updated by Laurie Hurson over 3 years ago
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.
Updated by Luke Waltzer over 3 years ago
I agree with Matt - no notification for edited blog posts.
+1.
Updated by Raymond Hoh over 3 years ago
- 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.
Updated by Boone Gorges over 3 years ago
- Status changed from Staged for Production Release to Resolved