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
27
pulls
pipelines
add trailing slash to og-image req url
awarm.space
9 months ago
9eb67809
4c9811db
+2
-2
2 changed files
expand all
collapse all
unified
split
app
lish
[did]
[publication]
[rkey]
opengraph-image.ts
opengraph-image.ts
+1
-1
app/lish/[did]/[publication]/[rkey]/opengraph-image.ts
···
7
7
params: { publication: string; did: string; rkey: string };
8
8
}) {
9
9
return getMicroLinkOgImage(
10
10
-
`/lish/${decodeURIComponent(props.params.did)}/${decodeURIComponent(props.params.publication)}/${props.params.rkey}`,
10
10
+
`/lish/${decodeURIComponent(props.params.did)}/${decodeURIComponent(props.params.publication)}/${props.params.rkey}/`,
11
11
);
12
12
}
+1
-1
app/lish/[did]/[publication]/opengraph-image.ts
···
7
7
params: { publication: string; did: string };
8
8
}) {
9
9
return getMicroLinkOgImage(
10
10
-
`/lish/${decodeURIComponent(props.params.did)}/${decodeURIComponent(props.params.publication)}`,
10
10
+
`/lish/${encodeURIComponent(props.params.did)}/${encodeURIComponent(props.params.publication)}/`,
11
11
);
12
12
}