Monorepo for Tangled
0

Configure Feed

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

wip: appview/strings: disable gzip

Signed-off-by: Seongmin Lee <git@boltless.me>

Seongmin Lee (May 10, 2026, 12:53 AM +0900) 0730149d bdb59a38

+18 -16
+18 -16
appview/strings/strings.go
··· 379 379 return 380 380 } 381 381 382 - blob, err := xrpc.RepoUploadBlob(ctx, client, gz(content), ApplicationGzip) 382 + // blob, err := xrpc.RepoUploadBlob(ctx, client, gz(content), ApplicationGzip) 383 + blob, err := xrpc.RepoUploadBlob(ctx, client, strings.NewReader(content), "text/plain") 383 384 if err != nil { 384 385 fail("Failed to create record.", err) 385 386 return ··· 392 393 { 393 394 Name: filename, 394 395 Content: *blob.Blob, 395 - Gzip: &models.String_GzipInfo{ 396 - String_File_Gzip: tangled.String_File_Gzip{ 397 - RealMime: "text/plain", 398 - RealSize: int64(len(content)), 399 - }, 400 - Content: content, 401 - }, 396 + // Gzip: &models.String_GzipInfo{ 397 + // String_File_Gzip: tangled.String_File_Gzip{ 398 + // RealMime: "text/plain", 399 + // RealSize: int64(len(content)), 400 + // }, 401 + // Content: content, 402 + // }, 402 403 }, 403 404 } 404 405 ··· 492 493 return 493 494 } 494 495 495 - blob, err := xrpc.RepoUploadBlob(ctx, client, gz(content), ApplicationGzip) 496 + // blob, err := xrpc.RepoUploadBlob(ctx, client, gz(content), ApplicationGzip) 497 + blob, err := xrpc.RepoUploadBlob(ctx, client, strings.NewReader(content), "text/plain") 496 498 if err != nil { 497 499 fail("Failed to create record.", err) 498 500 return ··· 507 509 { 508 510 Name: filename, 509 511 Content: *blob.Blob, 510 - Gzip: &models.String_GzipInfo{ 511 - String_File_Gzip: tangled.String_File_Gzip{ 512 - RealMime: "text/plain", 513 - RealSize: int64(len(content)), 514 - }, 515 - Content: content, 516 - }, 512 + // Gzip: &models.String_GzipInfo{ 513 + // String_File_Gzip: tangled.String_File_Gzip{ 514 + // RealMime: "text/plain", 515 + // RealSize: int64(len(content)), 516 + // }, 517 + // Content: content, 518 + // }, 517 519 }, 518 520 }, 519 521 Created: time.Now(),