mirror of
https://github.com/block/buzz.git
synced 2026-10-27 04:30:52 +00:00
Strip media metadata on clients and reject it at the relay (#2006)
Signed-off-by: npub12gtutshhh76rx0jx697f32f9tffd4hhp3hx58fp4x6u4uemkm7sqf8f757 <5217c5c2f7bfb4333e46d17c98a9255a52dadee18dcd43a43536b95e6776dfa0@sprout-oss.stage.blox.sqprod.co> Co-authored-by: npub12gtutshhh76rx0jx697f32f9tffd4hhp3hx58fp4x6u4uemkm7sqf8f757 <5217c5c2f7bfb4333e46d17c98a9255a52dadee18dcd43a43536b95e6776dfa0@sprout-oss.stage.blox.sqprod.co> Co-authored-by: Atish Patel <atish@squareup.com> Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -36,6 +36,7 @@ pub fn build_router(state: Arc<AppState>) -> Router {
|
||||
.max_image_bytes
|
||||
.max(state.config.media.max_video_bytes) as usize;
|
||||
let media_router = Router::new()
|
||||
.route("/upload", put(api::media::upload_blob))
|
||||
.route("/media/upload", put(api::media::upload_blob))
|
||||
.route(
|
||||
"/media/{sha256_ext}",
|
||||
|
||||
Reference in New Issue
Block a user