Hey guys so we recently set up our Discourse community and migrated over users from Xenforo.
It seems like when we migrated users over, the digest frequency was set to daily. I’ve since set it to weekly (our desired behavior).
When I click into the preferences of a new member I see their “Activity Summary” preference is set to weekly (matching the admin-set digest frequency). Perfect!
However when I click into the preferences of an older existing member I see their “Activity Summary” preference is still set to daily.
Result: our older existing members are getting summary emails for each day they don’t visit and are getting annoyed.
I know that users can change this individually in their own preferences, but how can we make the weekly digest frequency setting in the admin panel apply to all of our member’s “Activity Summary” preference, and not just new ones?
How do we update the Activity Summary (digest) settings for all existing members?
You need to run a query at the rails command line to update the preference for all existing users.
I’m kind of unclear how you ended up with this setting, as daily is NOT the default in Discourse. There is bootstrap mode, where the first 50 users after initial install get a daily digest, but it turns off after that, and also sets everyone back to weekly (the default).
Yep I remember the bootstrap mode! We did the transfer while still in bootstrap mode by following this guide:
Everything went smoothly and our 150ish members were available in Discourse, and the bootstrap mode notification/banner went away which I took to mean that Discourse recognized our 50th user sign up as part of the migration and disabled bootstrap mode.
But perhaps somehow something went wrong with the update of the automatic user preference back to weekly?
For future reference - if anyone uses this solution to fix a similar issue, it might be worth considering that if the site has been active for a while, some users MAY have changed their digest frequency or stopped it, so it would be useful to exclude those who have changed their settings already.