Add video optimization and following-first feed

هذا الالتزام موجود في:
2026-05-17 18:37:42 +03:00
الأصل 045c74014c
التزام 4912a99b8d
9 ملفات معدلة مع 416 إضافات و20 حذوفات

عرض الملف

@@ -77,6 +77,10 @@ Common conventions:
Supported filters:
- `GET /feed/me`
- defaults to followed accounts and the viewer's own posts
- use `followingOnly=false` to widen the home feed to public discovery posts
- `preferredPostType`, `followingOnly`, `radiusKm`, `includeSuggestions`, `suggestionInterval`
- `GET /marketplace/home`
- `listingsLimit`, `instrumentsLimit`, `repairShopsLimit`, `onlyActive`
- `GET /users`
@@ -201,6 +205,17 @@ Array fields may be sent either as repeated form keys or JSON text:
- `imageUrls`
- `waveformPeaks`
## Video optimization
When `VIDEO_PROCESSING_ENABLED=true` and `ffmpeg` is available on the server:
- uploaded post/reel videos are converted to optimized `mp4`
- `+faststart` is applied so playback begins faster on mobile/web
- a thumbnail image is generated automatically if the client does not send `thumbnailUrl`
If `ffmpeg` is not installed or video processing is disabled, uploads still work and the original
video file is stored as-is.
## Marketplace split
Marketplace is now separated from musical instruments at the API contract level: