thoka
(Thomas Kalka)
April 9, 2024, 2:21pm
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 Like
etienne
(Etienne Girardet)
April 16, 2024, 11:49am
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 Likes
thoka
(Thomas Kalka)
April 30, 2024, 8:23pm
104
The fork has its own official page now : Discourse mail daily summary plugin
1 Like