I currently have 12 users on my site, signed up to various public groups, and all are signed up to receive daily digests. For some reason new posts and replies on the forums (for all groups I have tested) are only getting added to the digest for one user. New updates on the activity stream, new docs, and new tasks are getting added for all users however. I am not sure if this is a bug, or a quirk on my set up, and I'm pretty sure it was working OK before. Perhaps it's related to the recent update of this plugin, perhaps not. I have tried deactivating and activating the plugin again, with no success.
On the Group Email settings page, did you try clicking on the "View queued digest items" link? (Make sure there are some items queued in the digest and that you're logged in as an admin to view them.)
Does the queued digest show items only for one user?
Yes, I use the ?sum=1 URL a lot to test what's in the digest queue. What I'm seeing is that all BP activity is getting successfully added to the digest for all users, except new topics and replies on forums which are only getting added to the digest for one user.
Thanks for jumping in here @r-a-y - this part of the codebase is your handiwork :) Let me know if I can help with debugging.
Hi Nick, can you test out my changes and report back?
Overwrite what you have in the plugin with this:
Thanks for reporting, Nick!
Hi Ray. I just tested with the new version of bp-activity-subscription-functions.php that you linked to in the first version of your last comment and no activity for the forum got added to the digest, not even for the user who was getting activity added before. Are there any further changes in the zip file you are now linking to?
Yes, there was a new change! See:
If you're comfortable with making that change do so, otherwise, use the same ZIP link again:
Thanks again for testing!
Bingo! (as we say on this side of the pond). That's fixed it. I just tested and both topics and replies are getting added to the digest correctly. Thanks Ray.
On a related matter, I noticed that a backslash is getting added before apostrophes in the digest. I have previously added:
As suggested in this support thread on the plugin page:
And I thought this had fixed the issue, but maybe that file only handles some activity, and I need to add the same code, or something similar to:
Or maybe the backslashes will get stripped when the digest is sent? Can you advise on this? Could you add this to the next update so that apostrophes are handled correctly?
Thanks for confirming the fix works. I've just opened a pull request to Boone, so this should be addressed in the distribution version of the plugin shortly.
Regarding the filter problem, I've opened a new issue about this: #23.
Thanks @r-a-y for your help, and for posting the new issue