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
make handles consistent
awarm.space
5 months ago
c0792beb
16c4bd36
+6
-4
3 changed files
expand all
collapse all
unified
split
app
reader
ReaderContent.tsx
getReaderFeed.ts
getSubscriptions.ts
+1
-1
app/reader/ReaderContent.tsx
···
159
159
/>
160
160
<Separator classname="h-4 !min-h-0 md:block hidden" />
161
161
<PostInfo
162
162
-
author={props.author?.alsoKnownAs?.[0]?.slice(5) || ""}
162
162
+
author={props.author || ""}
163
163
publishedAt={postRecord.publishedAt}
164
164
/>
165
165
</div>
+4
-2
app/reader/getReaderFeed.ts
···
51
51
pubRecord: pub?.record || null,
52
52
uri: pub?.uri || "",
53
53
},
54
54
-
author: handle,
54
54
+
author: handle?.alsoKnownAs?.[0]
55
55
+
? `@${handle.alsoKnownAs[0].slice(5)}`
56
56
+
: null,
55
57
documents: {
56
58
comments_on_documents: post.comments_on_documents,
57
59
document_mentions_in_bsky: post.document_mentions_in_bsky,
···
78
80
}
79
81
80
82
export type Post = {
81
81
-
author: DidDocument | null;
83
83
+
author: string | null;
82
84
publication: {
83
85
href: string;
84
86
pubRecord: Json;
+1
-1
app/reader/getSubscriptions.ts
···
44
44
return {
45
45
...pub.publications!,
46
46
authorProfile: id?.alsoKnownAs?.[0]
47
47
-
? { handle: id.alsoKnownAs[0] }
47
47
+
? { handle: `@${id.alsoKnownAs[0].slice(5)}` }
48
48
: undefined,
49
49
};
50
50
}) || [],