Skip to content

Commit

Permalink
fix: remove information disclosure via queue approval (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
Skelmis authored Feb 27, 2024
1 parent cee879e commit 5840093
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion suggestions/objects/suggestion.py
Original file line number Diff line number Diff line change
Expand Up @@ -925,11 +925,16 @@ async def setup_initial_messages(
log.debug("Created a thread on suggestion %s", self.suggestion_id)

try:
suggestion_author = (
f"<@{self.suggestion_author_id}>"
if comes_from_queue
else interaction.author.mention
)
embed: disnake.Embed = disnake.Embed(
description=bot.get_locale(
"SUGGEST_INNER_SUGGESTION_SENT", interaction.locale
).format(
interaction.author.mention,
suggestion_author,
channel.mention,
self.suggestion_id,
),
Expand Down

0 comments on commit 5840093

Please sign in to comment.