Skip to content

Commit

Permalink
fix: 🐛 fix usage of post title for metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan6erbond committed May 12, 2023
1 parent f9628e7 commit dd7c59d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/posts/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export default function Post(props: PostProps) {
}, [post, debouncedTitle, isPublic, nsfw]);

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

Expand Down

0 comments on commit dd7c59d

Please sign in to comment.