discourse/app/jobs/regular
Martin Brennan e43a8af3bd
FIX: Do not send emails to mailing_list_mode subscribers for PMs (#14159)
This bug was introduced by f66007ec83.

In PostJobsEnqueuer we previously did not fire the after_post_create
event and after_topic_create event for private message topics. This was
changed in the above commit in order to publish message bus messages
for topic tracking state updates. Unfortunately this caused the
NotifyMailingListSubscribers job to be enqueued for all posts including
private messages, and admins and the users involved in the PMs got
emailed the contents of the PMs if they had mailing list mode enabled.

Luckily the impact of this was mitigated by a Guardian#can_see? check
for each mailing list mode user in the NotifyMailingListSubscribers job.
We never want to notify mailing list mode subscribers for private messages
so an early return has been added there, plus the logic in PostJobsEnqueuer
has been fixed, and tests have been added to that class where there were
none before.
2021-08-26 15:16:35 +10:00
..
admin_confirmation_email.rb
anonymize_user.rb FIX: Destroy invites of anonymized emails (#13404) 2021-06-17 10:45:40 +03:00
automatic_group_membership.rb UX: drop the `automatic_membership_retroactive` column from groups model. (#9430) 2020-04-22 22:07:39 +05:30
backup_chunks_merger.rb PERF: Remove database query when publishing to staff users. 2020-04-27 11:50:21 +08:00
bulk_grant_trust_level.rb
bulk_invite.rb FIX: Autocorrect values for dropdown imported user fields (#12572) 2021-03-31 19:19:57 +03:00
bulk_user_title_update.rb FIX: Unassign user titles when a badge is deleted (#9573) 2020-05-02 18:02:28 -07:00
bump_topic.rb DEV: Change Topic Timer from enqueue_at scheduled jobs to incrementally executed jobs (#11698) 2021-01-19 13:30:58 +10:00
clear_slow_mode.rb DEV: Change Topic Timer from enqueue_at scheduled jobs to incrementally executed jobs (#11698) 2021-01-19 13:30:58 +10:00
close_topic.rb DEV: Correct typos and spelling mistakes (#12812) 2021-05-21 11:43:47 +10:00
confirm_sns_subscription.rb
crawl_topic_link.rb
create_avatar_thumbnails.rb DEV: Remove gifsicle dependency (#10357) 2020-10-16 13:41:27 +03:00
create_backup.rb
create_linked_topic.rb FIX: when creating linked topics make sure they belong to same category (#11188) 2020-11-11 00:44:27 +05:30
create_user_reviewable.rb
critical_user_email.rb
delete_inaccessible_notifications.rb
delete_replies.rb FEATURE: Allow durations < 1 hour and < 1 day for topic timers where duration is specified (auto delete replies, close based on last post) (#11961) 2021-02-05 10:12:56 +10:00
delete_topic.rb DEV: Change Topic Timer from enqueue_at scheduled jobs to incrementally executed jobs (#11698) 2021-01-19 13:30:58 +10:00
download_avatar_from_url.rb
download_backup_email.rb
download_profile_background_from_url.rb
emit_web_hook_event.rb DEV: decrease webhook timeout and move to 'low' priority queue. (#14038) 2021-08-13 10:41:02 +05:30
enable_bootstrap_mode.rb
export_csv_file.rb PERF: properly preload emails to speed up user exports (#12778) 2021-04-21 10:42:07 +10:00
export_user_archive.rb DEV: ensure user export ordering is predictable (#13340) 2021-06-09 15:55:52 +10:00
feature_topic_users.rb
generate_topic_thumbnails.rb FIX: Handle a deleted topic in thumbnail generation 2020-05-11 13:32:37 -03:00
group_pm_alert.rb PERF: Async notify users after inviting group (#12697) 2021-04-14 19:30:51 +03:00
group_smtp_email.rb FIX: Email threads sometimes not grouping for group SMTP (#13727) 2021-07-14 14:23:14 +10:00
index_category_for_search.rb FIX: don't error-index category job when missing category 2020-12-01 09:30:53 +08:00
invite_email.rb FIX: Correctly use invite to topic email templates (#12411) 2021-03-16 17:08:54 +02:00
invite_password_instructions_email.rb
make_embedded_topic_visible.rb FIX: Concurrency issues with making topic embedded posts visible 2020-04-20 15:11:59 -04:00
mass_award_badge.rb FEATURE: Add option to grant badge multiple times to users using Bulk Award (#13571) 2021-07-15 05:53:26 +03:00
merge_user.rb PERF: run user merging task in a background job. (#10961) 2020-12-10 15:52:08 +11:00
notify_category_change.rb
notify_mailing_list_subscribers.rb FIX: Do not send emails to mailing_list_mode subscribers for PMs (#14159) 2021-08-26 15:16:35 +10:00
notify_moved_posts.rb
notify_post_revision.rb
notify_reviewable.rb FIX: Clear stale status of reloaded reviewables (#13750) 2021-07-16 19:57:12 +03:00
notify_tag_change.rb PERF: Perform user filtering in SQL (#13358) 2021-06-11 10:55:50 +10:00
open_topic.rb DEV: Correct typos and spelling mistakes (#12812) 2021-05-21 11:43:47 +10:00
post_alert.rb
post_update_topic_tracking_state.rb FEATURE: Display unread and new counts for messages. (#14059) 2021-08-25 11:17:56 +08:00
process_bulk_invite_emails.rb
process_email.rb DEV: Add created_via column to IncomingEmail (#11751) 2021-01-20 13:22:41 +10:00
process_post.rb DEV: Move autotag to topic creator (#12790) 2021-04-23 16:55:34 +03:00
process_sns_notification.rb
publish_topic_to_category.rb DEV: Change Topic Timer from enqueue_at scheduled jobs to incrementally executed jobs (#11698) 2021-01-19 13:30:58 +10:00
pull_hotlinked_images.rb DEV: Add more verbose logging for image uploads (#13270) 2021-06-04 15:13:58 +03:00
push_notification.rb FIX: Mobile app notification urls w/ subfolder (#12282) 2021-03-04 07:07:37 -07:00
rebake_custom_emoji_posts.rb
rebake_posts_for_upload.rb
remove_banner.rb DEV: adds support for bannered until (#13417) 2021-06-24 11:35:36 +02:00
retrieve_topic.rb
run_heartbeat.rb DEV: Replace `Time.new` with `Time.now` (#9142) 2020-03-09 17:37:49 +01:00
send_push_notification.rb
send_system_message.rb
suspicious_login.rb
sync_topic_user_bookmarked.rb FIX: Make sure topic_user.bookmarked is synced in more places (#13383) 2021-06-16 08:30:40 +10:00
toggle_topic_closed.rb DEV: Split toggle topic close job (#11679) 2021-01-13 08:49:29 +10:00
topic_action_converter.rb FIX: Limit personal message participants when converting from topic (#9343) 2020-04-03 16:42:01 +01:00
topic_timer_base.rb DEV: Change Topic Timer from enqueue_at scheduled jobs to incrementally executed jobs (#11698) 2021-01-19 13:30:58 +10:00
truncate_user_flag_stats.rb
unpin_topic.rb DEV: adds support for bannered until (#13417) 2021-06-24 11:35:36 +02:00
update_gravatar.rb FIX: Gravatar download attempt if user is missing their email 2020-09-02 20:19:46 -06:00
update_group_mentions.rb
update_post_uploads_secure_status.rb PERF: Update post uploads secure status in a job (#13459) 2021-06-21 19:15:24 +03:00
update_s3_inventory.rb
update_top_redirection.rb
update_topic_upload_security.rb
update_username.rb FIX: Don't raise error in update username job if user has been deleted. 2020-09-02 11:17:17 +08:00
user_email.rb FIX: Handle SMTPServerBusy for group smtp email (#13632) 2021-07-06 13:37:52 +10:00