semantic bufo search find-bufo.com
bufo
1
fork

Configure Feed

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

debug: log video upload response, fix content-type for GIFs

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

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

zzstoatzz d09abf9e 22f9763d

+7 -2
+7 -2
bot/src/bsky.zig
··· 352 352 .location = .{ .url = url }, 353 353 .method = .POST, 354 354 .headers = .{ 355 - .content_type = .{ .override = "video/mp4" }, 355 + .content_type = .{ .override = "image/gif" }, 356 356 .authorization = .{ .override = auth_header }, 357 357 }, 358 358 .payload = data, ··· 369 369 } 370 370 371 371 const response = aw.toArrayList(); 372 + std.debug.print("upload video response: {s}\n", .{response.items}); 373 + 372 374 const parsed = json.parseFromSlice(json.Value, self.allocator, response.items, .{}) catch return error.ParseError; 373 375 defer parsed.deinit(); 374 376 375 - const job_status = parsed.value.object.get("jobStatus") orelse return error.NoJobStatus; 377 + const job_status = parsed.value.object.get("jobStatus") orelse { 378 + std.debug.print("no jobStatus in response\n", .{}); 379 + return error.NoJobStatus; 380 + }; 376 381 if (job_status != .object) return error.NoJobStatus; 377 382 378 383 const job_id_val = job_status.object.get("jobId") orelse return error.NoJobId;