According to LogsPlugin.ts#L123, ping_user is deprecated, implying that allow_user_mentions is the preferred option. Yet in getLogMessage.ts#L92, the user mention formatting result used in logs is determined by both ping_user and allow_user_mentions.
If ping_user was internally marked as deprecated, why is it still being used to determine a user mention formatting result?
Instead, could we just standardize allow_user_mentions as the determining condition for whether or not verboseUserMention() is called instead of verboseUserName()?
if (config.allow_user_mentions) {
mentions.push(verboseUserMention(user));
} else {
mentions.push(verboseUserName(user));
}
According to LogsPlugin.ts#L123,
ping_useris deprecated, implying thatallow_user_mentionsis the preferred option. Yet in getLogMessage.ts#L92, the user mention formatting result used in logs is determined by bothping_userandallow_user_mentions.If
ping_userwas internally marked as deprecated, why is it still being used to determine a user mention formatting result?Instead, could we just standardize
allow_user_mentionsas the determining condition for whether or notverboseUserMention()is called instead ofverboseUserName()?