diff --git a/common/src/util/parse.ts b/common/src/util/parse.ts index 74713b12..429863c2 100644 --- a/common/src/util/parse.ts +++ b/common/src/util/parse.ts @@ -47,13 +47,14 @@ export function parseMentions(data: JSONContent): string[] { } export const extensions = [ - StarterKit, - Link, + StarterKit.configure({}), // ✅ instantiate + Link.configure({ openOnClick: true }), Image.extend({ renderText: () => '[image]' }), - Mention, // user @mention + Mention.configure({}), Iframe.extend({ - renderText: ({ node }) => - '[embed]' + node.attrs.src ? `(${node.attrs.src})` : '', + renderText: ({ node }) => { + return `[embed]${node.attrs.src ? `(${node.attrs.src})` : ''}` + }, }), ] diff --git a/web/hooks/use-lovers.ts b/web/hooks/use-lovers.ts index 4b4efe5f..ac5ff3ba 100644 --- a/web/hooks/use-lovers.ts +++ b/web/hooks/use-lovers.ts @@ -30,7 +30,6 @@ export const useCompatibleLovers = ( } else if (userId === null) setData(null) }, [userId]) - console.log('debug', data) if (data && lover && options?.sortWithModifiers) { data.compatibleLovers = sortBy(data.compatibleLovers, (l) => { const modifier = !lover ? 1 : getLoversCompatibilityFactor(lover, l)