Skip to content

Avatar reupload config update - #971

Merged
ThomasSession merged 4 commits into
release/1.21.0from
fix/avatar-reupload-config-update
Feb 24, 2025
Merged

Avatar reupload config update#971
ThomasSession merged 4 commits into
release/1.21.0from
fix/avatar-reupload-config-update

Conversation

@ThomasSession

Copy link
Copy Markdown
Collaborator

Making sure we update the user config when reuploading the avatar (the reupload mechanism is a way of keeping the avatar alive on the file server).

Also changed the failing logic for avatars and attachments to avoid constantly retrying downloads on 404 responses.

@AL-Session AL-Session left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

You could change the first line of DownloadUtilities.downloadFile to:

destination.outputStream().use { outputStream ->

which would then properly close the output stream even if there's an exception thrown during the download.

@ThomasSession
ThomasSession merged commit a1fd6cc into release/1.21.0 Feb 24, 2025
@ThomasSession
ThomasSession deleted the fix/avatar-reupload-config-update branch February 24, 2025 23:06
Sign up for free to 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.

3 participants