a tool for shared writing and social publishing

handle empty profile on subscribe to publication

+6 -4
+6 -4
app/lish/subscribeToPublication.ts
··· 49 49 let bsky = new BskyAgent(credentialSession); 50 50 let [prefs, profile, resolveDid] = await Promise.all([ 51 51 bsky.app.bsky.actor.getPreferences(), 52 - bsky.app.bsky.actor.profile.get({ 53 - repo: credentialSession.did!, 54 - rkey: "self", 55 - }), 52 + bsky.app.bsky.actor.profile 53 + .get({ 54 + repo: credentialSession.did!, 55 + rkey: "self", 56 + }) 57 + .catch(), 56 58 idResolver.did.resolve(credentialSession.did!), 57 59 ]); 58 60 if (!identity.bsky_profiles && profile.value) {