Skip to content

take care of double full stop in avatar URIs#606

Merged
rusq merged 1 commit intomasterfrom
i603
Jan 31, 2026
Merged

take care of double full stop in avatar URIs#606
rusq merged 1 commit intomasterfrom
i603

Conversation

@rusq
Copy link
Copy Markdown
Owner

@rusq rusq commented Jan 31, 2026

Fixes #603

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes issue #603 where avatar downloads fail with 403 Forbidden errors when Slack returns avatar URLs containing double periods before the file extension (e.g., original..jpg).

Changes:

  • Added removeDoubleDots method to strip extra periods from avatar URLs before downloading
  • Added comprehensive test coverage for the new method including edge cases (empty strings, no extension, non-ASCII characters)

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
internal/convert/transform/fileproc/avatar.go Implements removeDoubleDots method and applies it to avatar URLs before download
internal/convert/transform/fileproc/avatar_test.go Adds comprehensive test cases for the new removeDoubleDots method

@rusq rusq merged commit f25bd25 into master Jan 31, 2026
9 checks passed
@rusq rusq deleted the i603 branch January 31, 2026 22:21
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.

403 Forbidden trying to download avatars with two periods in filename

2 participants