alehandrof
(Alex Armstrong)
May 26, 2017, 1:56pm
41
Fair enough
This command will turn on the “Activity Summary” (referred to as “digests” in the source code) for everyone, set the frequency to daily (1440 minutes), and include posts by new users:
User.all.each { |u| uo = u.user_option ; uo.email_digests = true; uo.digest_after_minutes = 1440; uo.include_tl0_in_digests = true; uo.save! }
Edit: I didn’t bother to handle the case where people have daily emails set up, as this will (eventually) be taken care of by the migration: discourse/db/migrate/20170505035229_migrate_mailing_list_daily_updates_users_to_daily_summary.rb at 0984763013bc18f62912d55bd3c12a83423b1b83 · discourse/discourse · GitHub
3 Likes
alehandrof
(Alex Armstrong)
June 28, 2017, 10:43am
42
FYI – there’s now a plugin allowing daily digests functionality:
For a variety of reasons the option for mailing list mode users to receive a daily summary email was removed. It turns out there are a handful of communities that relied on this feature and as such it provoked a good discussion about the restoration of the feature . It was mentioned in that topic that I was working on this. Thanks to @lkramer and team for sponsoring this work!
This plugin adds an option to the email preferences for a user and allows them to enable the daily emails. It i…
(This is currently essentially the old feature wrapped up as a plugin.)
6 Likes