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
don't use url param as pub name on post page
awarm.space
5 months ago
e89ea04e
486797a6
+2
-7
3 changed files
expand all
collapse all
unified
split
app
lish
[did]
[publication]
[rkey]
PostHeader
PostHeader.tsx
PostPage.tsx
page.tsx
+1
-2
app/lish/[did]/[publication]/[rkey]/PostHeader/PostHeader.tsx
···
10
10
11
11
export function PostHeader(props: {
12
12
data: PostPageData;
13
13
-
name: string;
14
13
profile: ProfileViewDetailed;
15
14
preferences: { showComments?: boolean };
16
15
}) {
···
47
46
)
48
47
}
49
48
>
50
50
-
{props.name}
49
49
+
{pub?.name}
51
50
</SpeedyLink>
52
51
{identity &&
53
52
identity.atp_did ===
+1
-4
app/lish/[did]/[publication]/[rkey]/PostPage.tsx
···
17
17
export function PostPage({
18
18
document,
19
19
blocks,
20
20
-
name,
21
20
did,
22
21
profile,
23
22
preferences,
···
27
26
}: {
28
27
document: PostPageData;
29
28
blocks: PubLeafletPagesLinearDocument.Block[];
30
30
-
name: string;
31
29
profile: ProfileViewDetailed;
32
30
pubRecord: PubLeafletPublication.Record;
33
31
did: string;
···
68
66
<PostHeader
69
67
data={document}
70
68
profile={profile}
71
71
-
name={name}
72
69
preferences={preferences}
73
70
/>
74
71
<PostContent
···
104
101
document.documents_in_publications[0].publications
105
102
.publication_subscriptions
106
103
}
107
107
-
pubName={name}
104
104
+
pubName={pubRecord.name}
108
105
/>
109
106
)}
110
107
</div>
-1
app/lish/[did]/[publication]/[rkey]/page.tsx
···
159
159
bskyPostData={bskyPostData.data.posts}
160
160
did={did}
161
161
blocks={blocks}
162
162
-
name={decodeURIComponent((await props.params).publication)}
163
162
prerenderedCodeBlocks={prerenderedCodeBlocks}
164
163
/>
165
164
<InteractionDrawer