mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-21 01:23:40 +00:00
fix(telegram): honor the author emoji toggle
The author marker must obey the group emoji preference just like formatter-added decoration.
This commit is contained in:
1 parent
7a76cac8a1
commit
8b10b98880
2 files changed
+6
-1
No files matched your search
@@ -106,7 +106,7 @@ export function renderNeutralMessage(message: NeutralMessage): string {
|
|||||||
if (message.author) {
|
if (message.author) {
|
||||||
const name = mdToHtml(message.author.name);
|
const name = mdToHtml(message.author.name);
|
||||||
const author = message.author.url ? `<a href="${esc(message.author.url)}">${name}</a>` : name;
|
const author = message.author.url ? `<a href="${esc(message.author.url)}">${name}</a>` : name;
|
||||||
parts.push(`👤 ${author}`);
|
parts.push(message.emoji === false ? author : `👤 ${author}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (message.description) {
|
if (message.description) {
|
||||||
|
|||||||
@@ -338,6 +338,11 @@ export interface NeutralMessage {
|
|||||||
* the route's `discordRoleIds`). Only used by the Discord driver.
|
* the route's `discordRoleIds`). Only used by the Discord driver.
|
||||||
*/
|
*/
|
||||||
mentionRoleIds?: string[];
|
mentionRoleIds?: string[];
|
||||||
|
/**
|
||||||
|
* False when the group turned emoji off: drivers must not add decorative
|
||||||
|
* emoji of their own (e.g. Telegram's author marker). Defaults to true.
|
||||||
|
*/
|
||||||
|
emoji?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FormattedMessage {
|
export interface FormattedMessage {
|
||||||
|
|||||||
Reference in new issue
Block a user