Skip to content

fix: detect autolinks for HasLink property#5491

Closed
thefatcode wants to merge 2 commits intousememos:mainfrom
thefatcode:fix/5407-autolink-haslink
Closed

fix: detect autolinks for HasLink property#5491
thefatcode wants to merge 2 commits intousememos:mainfrom
thefatcode:fix/5407-autolink-haslink

Conversation

@thefatcode
Copy link
Contributor

Fixes #5407

Auto-links (raw URLs like https://example.com) were not being detected when setting the HasLink property in memo payloads.

Changes

  • Added gast.KindAutoLink to the switch case in ExtractProperties()
  • Added gast.KindAutoLink to the switch case in ExtractAll()

This ensures that both standard markdown links [text](url) and auto-links are properly detected.

Refactored video/audio file serving to use streaming via ReadSeeker
instead of loading entire files into memory. For local storage, files
are opened directly for zero-copy streaming. For S3 and database
storage, content is still loaded into memory as these sources don't
provide seekable streams. This significantly reduces memory footprint
when serving large media files.
Copy link
Contributor

@johnnyjoygh johnnyjoygh left a comment

Choose a reason for hiding this comment

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

LGTM, otherwise

@boojack boojack force-pushed the main branch 2 times, most recently from a196c72 to 71e8a06 Compare February 10, 2026 01:15
@boojack boojack self-requested a review as a code owner February 24, 2026 14:23
@boojack boojack force-pushed the main branch 2 times, most recently from 2b6b987 to 47d9414 Compare February 24, 2026 14:55
@boojack boojack closed this Mar 4, 2026
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