Group message counts not same as actual number of messages printed in emails
Hi, thanks for the plugin – REALLY good.
I’m running plugin v2.9.4 on a heavily customised BuddyPress v1.2.8 on WP 3.1.3.
I have an issue where the counts specified in the summary of a digest do not match the numbers of items printed.
Looking at the code, it seems that the list of posts to print is stored with meta-data (key = ‘ass_digest_items’) alongside a user. The number of items stored in this meta key is used in producing the summary count, but then the call to `bp_activity_get_specific()` in `ass_digest_format_item_group` isn’t returning all of the activities.
My suspicion is that this is related to activities being deleted. When activities are deleted they are left in the meta, but then aren’t returned.
If this is the case, I see two fixes:
1) Add an action hook to delete the meta when the activity is deleted.
2) Use the output of `bp_activity_get_specific` to generate the counts in the summary.
I don’t have time to investigate further and produce a patch, but perhaps the plugin author could look into it?
- The topic ‘Group message counts not same as actual number of messages printed in emails’ is closed to new replies.