Add username and fullname for formatting (#65)

Added username and fullname to make them usable in the custom formatting for the posts.
This commit is contained in:
Gökhan Gurbetoğlu 2021-03-15 18:19:05 +03:00 committed by GitHub
parent 74b5e2fa77
commit 7f5ef4f8f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,8 @@ module DiscourseChat
I18n.t(
"chat_integration.provider.telegram.message",
user: display_name,
username: post.user.username,
fullname: full_name,
post_url: post.full_url,
title: CGI::escapeHTML(topic.title),
post_excerpt: post.excerpt(SiteSetting.chat_integration_telegram_excerpt_length, text_entities: true, strip_links: true, remap_emoji: true),