A community based topic aggregation platform built on atproto
11
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(blobs): increase thumbnail size limit from 1MB to 6MB

Aggregator thumbnail uploads were failing for larger images. Increased
the blob size limit to 6MB to match Bluesky's standard blob limits.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

+7 -7
+1 -1
internal/atproto/lexicon/social/coves/embed/external.json
··· 38 38 "thumb": { 39 39 "type": "blob", 40 40 "accept": ["image/png", "image/jpeg", "image/webp"], 41 - "maxSize": 1000000, 41 + "maxSize": 6000000, 42 42 "description": "Thumbnail image for the post (applies to primary link)" 43 43 }, 44 44 "domain": {
+6 -6
internal/core/blobs/service.go
··· 90 90 return nil, fmt.Errorf("failed to read image data: %w", err) 91 91 } 92 92 93 - // Validate size (1MB = 1048576 bytes) 94 - const maxSize = 1048576 93 + // Validate size (6MB = 6291456 bytes) 94 + const maxSize = 6291456 95 95 if len(data) > maxSize { 96 - return nil, fmt.Errorf("image size %d bytes exceeds maximum of %d bytes (1MB)", len(data), maxSize) 96 + return nil, fmt.Errorf("image size %d bytes exceeds maximum of %d bytes (6MB)", len(data), maxSize) 97 97 } 98 98 99 99 // Upload to PDS ··· 124 124 return nil, fmt.Errorf("unsupported MIME type: %s (allowed: image/jpeg, image/png, image/webp)", mimeType) 125 125 } 126 126 127 - // Validate size (1MB = 1048576 bytes) 128 - const maxSize = 1048576 127 + // Validate size (6MB = 6291456 bytes) 128 + const maxSize = 6291456 129 129 if len(data) > maxSize { 130 - return nil, fmt.Errorf("data size %d bytes exceeds maximum of %d bytes (1MB)", len(data), maxSize) 130 + return nil, fmt.Errorf("data size %d bytes exceeds maximum of %d bytes (6MB)", len(data), maxSize) 131 131 } 132 132 133 133 // Use community's PDS URL (for federated communities)