thoka
(Thomas Kalka)
2024 年4 月 9 日 14:21
102
During debugging, we did not find serious issues.
# since: last_run_at,
reject_reason: last_run_at.to_s # TODO: this is a hack, since no other option survives
}
Jobs.enqueue(:user_email, opts)
end
end
def target_user_ids(compare_hour = true, repair_problems = true)
enabled_ids = UserCustomField.where(name: "user_mlm_daily_summary_enabled", value: ["true","t"]).pluck(:user_id)
users = User.real
.activated
.not_suspended
.not_silenced
.joins(:user_option)
.where(id: enabled_ids)
.where(staged: false)
.where("#{!SiteSetting.must_approve_users?} OR approved OR moderator OR admin")
.where("COALESCE(first_seen_at, '2010-01-01') <= CURRENT_TIMESTAMP - '23 HOURS'::INTERVAL") # don't send unless you've been around for a day already
fixes the unreliable storage of true
in custom fields.
1 个赞
etienne
(Etienne Girardet)
2024 年4 月 16 日 11:49
103
Thomas Kalka:
The main reason for using this plugin was to be able to promise users “one mail per day”.
In our experience, however, an email that summarizes the changes in one day is ignored by many recipients or ends up in spam.
just for the record: we see advantages to offer users a way to interact with a community via reading the daily summary of their threads without either actively logging into the forum or get one mail per post (which can be annoying). we experienced a higher acceptance of being part of an active forum.
thanks for the work and keeping the plugin alive.
4 个赞
thoka
(Thomas Kalka)
2024 年4 月 30 日 20:23
104
The fork has its own official page now : Discourse mail daily summary plugin
1 个赞