Skip to content

Commit

Permalink
[Starboard] Check the filename of attachments since discord is adding…
Browse files Browse the repository at this point in the history
… security to cdn links now
  • Loading branch information
TrustyJAID committed Sep 29, 2023
1 parent 4b17d80 commit 6bc15ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion starboard/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ async def _build_embed(
name="Attachment",
value=f"||[{attachment.filename}]({attachment.url})||",
)
elif not attachment.url.lower().endswith(
elif not attachment.filename.lower().endswith(
("png", "jpeg", "jpg", "gif", "webp")
):
new_em.add_field(
Expand Down

0 comments on commit 6bc15ea

Please sign in to comment.