Skip to content
Snippets Groups Projects
Commit 436d8d5c authored by Teal's avatar Teal
Browse files

durrrr

parent a299f148
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,7 @@ class TelegramBotSubscriber ...@@ -25,7 +25,7 @@ class TelegramBotSubscriber
changes.delete("stage_id") changes.delete("stage_id")
end end
message = "<b><a href=\"#{conference_session_url(record.conference, record)}\">Session #{record.title}</a> #{action}</b>\n" + message = "<b><a href=\"#{conference_session_url(record.conference, record, host: 'rescheduled.c3lingo.org', protocol: 'https')}\">Session #{record.title}</a> #{action}</b>\n" +
changes.map { |attr, (from, to)| "- #{attr}: #{from} -> #{to}" }.join("\n") + "\n#{conference_session_url(record.conference, record)}" changes.map { |attr, (from, to)| "- #{attr}: #{from} -> #{to}" }.join("\n") + "\n#{conference_session_url(record.conference, record)}"
TelegramGroupChatNotificationJob.perform_later(target: "-316096320", text: message, parse_mode: 'HTML') TelegramGroupChatNotificationJob.perform_later(target: "-316096320", text: message, parse_mode: 'HTML')
...@@ -38,7 +38,7 @@ class TelegramBotSubscriber ...@@ -38,7 +38,7 @@ class TelegramBotSubscriber
record = event.payload[:record] record = event.payload[:record]
session = record.session session = record.session
message = "<b><a href=\"#{conference_session_url(session.conference, session)}\">Session #{session.title}</a> Speaker Change</b>\n" + message = "<b><a href=\"#{conference_session_url(session.conference, session, host: 'rescheduled.c3lingo.org', protocol: 'https')}\">Session #{session.title}</a> Speaker Change</b>\n" +
"#{record.speaker.name} #{action == 'destroyed' ? 'removed' : 'added'}" + "\n#{conference_session_url(session.conference, session)}" "#{record.speaker.name} #{action == 'destroyed' ? 'removed' : 'added'}" + "\n#{conference_session_url(session.conference, session)}"
TelegramGroupChatNotificationJob.perform_later(target: "-316096320", text: message, parse_mode: 'HTML') TelegramGroupChatNotificationJob.perform_later(target: "-316096320", text: message, parse_mode: 'HTML')
......
...@@ -74,3 +74,6 @@ Rails.application.configure do ...@@ -74,3 +74,6 @@ Rails.application.configure do
# Raise error when a before_action's only/except options reference missing actions # Raise error when a before_action's only/except options reference missing actions
config.action_controller.raise_on_missing_callback_actions = true config.action_controller.raise_on_missing_callback_actions = true
end end
Rails.application.routes.default_url_options[:host] = '127.0.0.1'
Rails.application.routes.default_url_options[:protocol] = 'http'
...@@ -96,4 +96,6 @@ Rails.application.configure do ...@@ -96,4 +96,6 @@ Rails.application.configure do
# config.host_authorization = { exclude: ->(request) { request.path == "/up" } } # config.host_authorization = { exclude: ->(request) { request.path == "/up" } }
end end
Rails.application.routes.default_url_options.merge({ host: 'rescheduled.c3lingo.org', protocol: 'https' }) # Rails.application.routes.default_url_options.merge({ host: 'rescheduled.c3lingo.org', protocol: 'https' })
Rails.application.routes.default_url_options[:host] = 'rescheduled.c3lingo.org'
Rails.application.routes.default_url_options[:protocol] = 'https'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment