diff --git a/app/subscribers/telegram_bot_subscriber.rb b/app/subscribers/telegram_bot_subscriber.rb index 1f633fcd3ca2fc96044476988fc4dddc0813ebf5..6aac96fbe50da66c10f8e613f44f537477910915 100644 --- a/app/subscribers/telegram_bot_subscriber.rb +++ b/app/subscribers/telegram_bot_subscriber.rb @@ -28,7 +28,7 @@ class TelegramBotSubscriber end message = "<b><a href=\"#{conference_session_url(session.conference, session, host: 'rescheduled.c3lingo.org', protocol: 'https')}\">Session #{session.title}</a></b>\n<b>#{action}</b>\n" + - changes.map { |attr, (from, to)| "- #{attr}: #{from} -> #{to}" }.join("\n") + "\n#{conference_session_url(session.conference, session)}" + changes.map { |attr, (from, to)| "- #{attr}: #{from} -> #{to}" }.join("\n") TelegramGroupChatNotificationJob.perform_later(text: message) end @@ -42,7 +42,7 @@ class TelegramBotSubscriber return unless session.conference.relevant_stages.include? session.stage message = "<b><a href=\"#{conference_session_url(session.conference, session, host: 'rescheduled.c3lingo.org', protocol: 'https')}\">Session #{session.title}</a></b>\n<b>Speaker Change</b>\n" + - "#{session_speaker.speaker.name} #{action == 'destroyed' ? 'removed' : 'added'}" + "\n#{conference_session_url(session.conference, session)}" + "#{session_speaker.speaker.name} #{action == 'destroyed' ? 'removed' : 'added'}" TelegramGroupChatNotificationJob.perform_later(text: message) end