Skip to content

Commit

Permalink
quote all templates
Browse files Browse the repository at this point in the history
  • Loading branch information
jessebot committed Jul 8, 2024
1 parent a1fe416 commit 124709d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions charts/matrix/templates/bridge-mautrix-discord/_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ appservice:
bridge:
# Localpart template of MXIDs for Discord users.
# {{`{{.}}`}} is replaced with the internal ID of the Discord user.
username_template: {{ .Values.bridges.discord_mautrix.config.bridge.username_template }}
username_template: {{ .Values.bridges.discord_mautrix.config.bridge.username_template | quote }}
# Displayname template for Discord users. This is also used as the room name in DMs if private_chat_portal_meta is enabled.
# Available variables:
# .ID - Internal user ID
Expand All @@ -110,19 +110,19 @@ bridge:
# .System - Whether the user is an official system user
# .Webhook - Whether the user is a webhook and is not an application
# .Application - Whether the user is an application
displayname_template: {{ .Values.bridges.discord_mautrix.config.bridge.displayname_template }}
displayname_template: {{ .Values.bridges.discord_mautrix.config.bridge.displayname_template | quote }}
# Displayname template for Discord channels (bridged as rooms, or spaces when type=4).
# Available variables:
# .Name - Channel name, or user displayname (pre-formatted with displayname_template) in DMs.
# .ParentName - Parent channel name (used for categories).
# .GuildName - Guild name.
# .NSFW - Whether the channel is marked as NSFW.
# .Type - Channel type (see values at https://github.com/bwmarrin/discordgo/blob/v0.25.0/structs.go#L251-L267)
channel_name_template: {{ .Values.bridges.discord_mautrix.config.bridge.channel_name_template }}
channel_name_template: {{ .Values.bridges.discord_mautrix.config.bridge.channel_name_template | quote }}
# Displayname template for Discord guilds (bridged as spaces).
# Available variables:
# .Name - Guild name
guild_name_template: {{ .Values.bridges.discord_mautrix.config.bridge.guild_name_template }}
guild_name_template: {{ .Values.bridges.discord_mautrix.config.bridge.guild_name_template | quote }}
# Whether to explicitly set the avatar and room name for private chat portal rooms.
# If set to `default`, this will be enabled in encrypted rooms and disabled in unencrypted rooms.
# If set to `always`, all DM rooms will have explicit names and avatars set.
Expand Down

0 comments on commit 124709d

Please sign in to comment.