mirror of
https://github.com/discourse/discourse-chat-integration.git
synced 2025-03-06 17:59:29 +00:00
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:
parent
74b5e2fa77
commit
7f5ef4f8f5
@ -72,6 +72,8 @@ module DiscourseChat
|
|||||||
I18n.t(
|
I18n.t(
|
||||||
"chat_integration.provider.telegram.message",
|
"chat_integration.provider.telegram.message",
|
||||||
user: display_name,
|
user: display_name,
|
||||||
|
username: post.user.username,
|
||||||
|
fullname: full_name,
|
||||||
post_url: post.full_url,
|
post_url: post.full_url,
|
||||||
title: CGI::escapeHTML(topic.title),
|
title: CGI::escapeHTML(topic.title),
|
||||||
post_excerpt: post.excerpt(SiteSetting.chat_integration_telegram_excerpt_length, text_entities: true, strip_links: true, remap_emoji: true),
|
post_excerpt: post.excerpt(SiteSetting.chat_integration_telegram_excerpt_length, text_entities: true, strip_links: true, remap_emoji: true),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user