mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
Merge branch 'master' into dependabot/bundler/rmagick-4.2.4
This commit is contained in:
commit
b7adbcc630
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user