chore: switched to site.standard.document.comment 19b6231a
Steve · 2026-01-09 22:11 1 file(s) · +5 −5
packages/server/src/routes/now.ts +5 −5
398 398
		const parentData = await parentResponse.json();
399 399
		const parentCid = parentData.cid;
400 400
401 -
		// Create the comment record using site.standard.comment lexicon
401 +
		// Create the comment record using site.standard.document.comment lexicon
402 402
		const createRecordUrl = `${c.env.PDS_URL}/xrpc/com.atproto.repo.createRecord`;
403 403
404 404
		const commentRecord = {
405 405
			repo: session.did,
406 -
			collection: "site.standard.comment",
406 +
			collection: "site.standard.document.comment",
407 407
			record: {
408 -
				$type: "site.standard.comment",
408 +
				$type: "site.standard.document.comment",
409 409
				parent: {
410 410
					uri: body.parentUri,
411 411
					cid: parentCid,
506 506
		const parentData = await parentResponse.json();
507 507
		const parentCid = parentData.cid;
508 508
509 -
		// Fetch all site.standard.comment records
509 +
		// Fetch all site.standard.document.comment records
510 510
		// Note: This is a simple implementation that fetches all comments
511 511
		// In production, you'd want to filter by parent URI server-side if possible
512 512
		const listUrl =
513 513
			`${PDS_URL}/xrpc/com.atproto.repo.listRecords?` +
514 514
			new URLSearchParams({
515 515
				repo: DID,
516 -
				collection: "site.standard.comment",
516 +
				collection: "site.standard.document.comment",
517 517
				limit: "100",
518 518
			});
519 519