From 6ff31080d31e75c020784a6ee71c9728b92c651c Mon Sep 17 00:00:00 2001
From: Felix Eckhofer <felix@eckhofer.com>
Date: Fri, 27 Dec 2024 12:00:16 +0100
Subject: [PATCH] Add colon to telegram message

---
 app/subscribers/telegram_bot_subscriber.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/subscribers/telegram_bot_subscriber.rb b/app/subscribers/telegram_bot_subscriber.rb
index e2d4194..6489657 100644
--- a/app/subscribers/telegram_bot_subscriber.rb
+++ b/app/subscribers/telegram_bot_subscriber.rb
@@ -29,7 +29,7 @@ class TelegramBotSubscriber
       changes.delete("stage_id")
     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" +
+    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")
 
     TelegramGroupChatNotificationJob.perform_later(text: message)
@@ -45,7 +45,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" +
+    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'}"
 
     TelegramGroupChatNotificationJob.perform_later(text: message)
-- 
GitLab