Skip to content

Commit dd7c59d

Browse files
committed
fix: 🐛 fix usage of post title for metadata
1 parent f9628e7 commit dd7c59d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/pages/posts/[id].tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export default function Post(props: PostProps) {
207207
}, [post, debouncedTitle, isPublic, nsfw]);
208208

209209
const postTitle =
210-
(nsfw ? "[NSFW] " : "") + post?.title ||
210+
(nsfw ? "[NSFW] " : "") + title ||
211211
`Post by ${props.postAuthorUsername}`;
212212
const description = `Shared by ${props.postAuthorUsername}`;
213213

0 commit comments

Comments
 (0)