From f044dbf90940f5bd1f8b83ae616ab1012fb4da93 Mon Sep 17 00:00:00 2001 From: Ewan Croft Date: Tue, 4 Aug 2026 04:59:29 +0100 Subject: [PATCH] fix(opal-web): use agent.did instead of nonexistent agent.session.did MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Same fix as malachite-web — Agent from @atproto/api has no `session` property, so this always fell through to the `?? agent.did` branch anyway, but the dead reference tripped svelte-check. Co-Authored-By: Claude Sonnet 5 --- packages/opal-web/package.json | 2 +- packages/opal-web/src/lib/core/import.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/opal-web/package.json b/packages/opal-web/package.json index d39f7ca..28c7b57 100644 --- a/packages/opal-web/package.json +++ b/packages/opal-web/package.json @@ -1,6 +1,6 @@ { "name": "@ewanc26/opal-web", - "version": "0.1.1", + "version": "0.1.2", "description": "Web frontend for Opal — convert microblog posts from Twitter, Mastodon, Threads, and Nostr to AT Protocol", "author": "Ewan Croft", "license": "AGPL-3.0-only", diff --git a/packages/opal-web/src/lib/core/import.ts b/packages/opal-web/src/lib/core/import.ts index 4cbb407..1ad9f17 100644 --- a/packages/opal-web/src/lib/core/import.ts +++ b/packages/opal-web/src/lib/core/import.ts @@ -55,7 +55,7 @@ export async function runImport( if (!dryRun && !res.cancelled && res.successCount > 0) { try { await agent.com.atproto.repo.createRecord({ - repo: agent.session?.did ?? agent.did ?? '', + repo: agent.did ?? '', collection: 'click.croft.toolkit.use', record: { $type: 'click.croft.toolkit.use', -- 2.54.0