Merge branch 'master' into dependabot/bundler/rmagick-4.2.4

This commit is contained in:
Andrew Brown 2021-12-28 09:16:10 -08:00 committed by GitHub
commit b7adbcc630
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ class NotifyDiscordOfThreadJob < ApplicationJob
def perform(*args)
thread_id = args.shift
thread = Thredded::Topic.find_by(id: thread_id)
return unless thread
raise "No thread found for new ID #{thread.id.inspect}" unless thread
webhook_url = ENV.fetch('DISCORD_FORUMS_WEBHOOK', '').freeze

View File

@ -27,7 +27,7 @@ module Extensions
end
def notify_discord
NotifyDiscordOfThreadJob.perform_later(self.id)
NotifyDiscordOfThreadJob.set(wait: 1.minute).perform_later(self.id)
end
def create_content_page_share