Skip to content

Extending lifespan of deleted attachments - #523

Merged
danthe1st merged 1 commit into
Java-Discord:mainfrom
Defective4:blocked-attachment-reuploading
Sep 4, 2025
Merged

Extending lifespan of deleted attachments#523
danthe1st merged 1 commit into
Java-Discord:mainfrom
Defective4:blocked-attachment-reuploading

Conversation

@Defective4

@Defective4Defective4 commented Sep 3, 2025

Copy link
Copy Markdown
Member

Pull Request #520 introduced an attachment extension blacklist. The bot will immediately delete all attachments with forbidden extensions.
While the links to deleted attachments are logged, they are immediately invalidated by Discord.
This PR ensures that the deleted attachments are valid for a little longer, by making a HTTP request to URLs of all attachments sent by users.

@Defective4
Defective4 requested a review from a team as a code ownerSeptember 3, 2025 17:56
@Defective4Defective4 changed the title Blocked attachment reuploadingReuploading of deleted attachmentsSep 3, 2025
@Defective4Defective4 reopened this Sep 3, 2025
@Defective4Defective4 changed the title Reuploading of deleted attachmentsExtending lifespan of deleted attachmentsSep 3, 2025
@danthe1st
danthe1st merged commit 6a87f3d into Java-Discord:mainSep 4, 2025
4 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@Defective4@danthe1st