tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
28
pulls
pipelines
handle empty profile on subscribe to publication
awarm.space
5 months ago
c405d6da
1ff29b89
+6
-4
1 changed file
expand all
collapse all
unified
split
app
lish
subscribeToPublication.ts
+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
52
-
bsky.app.bsky.actor.profile.get({
53
53
-
repo: credentialSession.did!,
54
54
-
rkey: "self",
55
55
-
}),
52
52
+
bsky.app.bsky.actor.profile
53
53
+
.get({
54
54
+
repo: credentialSession.did!,
55
55
+
rkey: "self",
56
56
+
})
57
57
+
.catch(),
56
58
idResolver.did.resolve(credentialSession.did!),
57
59
]);
58
60
if (!identity.bsky_profiles && profile.value) {