v3: fixes to database schema and user registration
This commit is contained in:
@@ -17,7 +17,9 @@ function preprocessMentions(text: string): string {
|
||||
}
|
||||
|
||||
// Static components object — defined once at module scope to avoid recreation on every render
|
||||
const MARKDOWN_COMPONENTS: React.ComponentProps<typeof ReactMarkdown>["components"] = {
|
||||
const MARKDOWN_COMPONENTS: React.ComponentProps<
|
||||
typeof ReactMarkdown
|
||||
>["components"] = {
|
||||
a: ({ href, children: linkChildren }) => {
|
||||
if (href?.startsWith("/users/")) {
|
||||
return <Link to={href}>{linkChildren}</Link>;
|
||||
|
||||
Reference in New Issue
Block a user