Skip to content
Snippets Groups Projects
Verified Commit 6ff31080 authored by Felix Eckhofer's avatar Felix Eckhofer :man_dancing:
Browse files

Add colon to telegram message

parent 0e78825e
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
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