Repository navigation
feat(media): store channel media lazily and compress images - #1485
Merged
Merged
Conversation
viethung0o0
force-pushed
the
feat/compress-media
branch
4 times, most recently
from
October 22, 2026 02:45
253aca9 to
163d490
Compare
…orage Messenger and Instagram media is fetched and stored the first time it is needed instead of on every webhook, and images from all channels are compressed before they are stored.
viethung0o0
force-pushed
the
feat/compress-media
branch
from
October 22, 2026 02:55
163d490 to
a54d609
Compare
viethung0o0
marked this pull request as ready for review
October 22, 2026 03:42
hello-jackytruong
referenced
this pull request
in hello-jackytruong/ChatWorkAI
Nov 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
STORED_IMAGE_*env vars (see.env.example).STORED_IMAGE_OPTIMIZATION=offturns compression off.LIVE_MEDIA_LAZY_CHANNELSandLIVE_AVATAR_LAZY_CHANNELSset to""bring back the old download-on-webhook behaviour.Deploy order
db:migrate) and on every message shard (db:migrate-shards) before starting the new code. It adds one nullable column.LIVE_MEDIA_LAZY_CHANNELS=andLIVE_AVATAR_LAZY_CHANNELS=set to empty, so old workers never handle lazy media.Test plan
pnpm lintcheck-typesfor the touched apps, packages and integrations