This commit is contained in:
MartinBraquet
2025-09-07 21:28:37 +02:00
parent 5194b5f6bf
commit 35b83dcb9a
2 changed files with 6 additions and 6 deletions

View File

@@ -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})` : ''}`
},
}),
]

View File

@@ -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)