Skip to content

feat: use kachi to make protected link unsafe#304

Merged
ninoseki merged 2 commits intomasterfrom
use-kachi
Feb 9, 2026
Merged

feat: use kachi to make protected link unsafe#304
ninoseki merged 2 commits intomasterfrom
use-kachi

Conversation

@ninoseki
Copy link
Copy Markdown
Owner

@ninoseki ninoseki commented Feb 9, 2026

Use kachi to make protected link unsafe.

@ninoseki ninoseki requested a review from nazywam February 9, 2026 00:38
content = h.handle(content)

urls.update(parse_urls(content, parse_urls_without_scheme=False))
return normalize_urls(unpack_safelink_urls(urls))
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It probably makes more sense to first normalize the URLs and then unsafe them? Because the ones contained within the Email message are more likely to be malformed (in comparison to the extracted ones)

However I don't know what was the original reason of calling normalize_urls

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

You are right and I changed the order: b69e1dc

@ninoseki ninoseki merged commit cce0d6d into master Feb 9, 2026
3 checks passed
@ninoseki ninoseki deleted the use-kachi branch February 9, 2026 23:50
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.

2 participants