Skip to content

Commit 35b83dc

Browse files
committed
Fix
1 parent 5194b5f commit 35b83dc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

common/src/util/parse.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,14 @@ export function parseMentions(data: JSONContent): string[] {
4747
}
4848

4949
export const extensions = [
50-
StarterKit,
51-
Link,
50+
StarterKit.configure({}), // ✅ instantiate
51+
Link.configure({ openOnClick: true }),
5252
Image.extend({ renderText: () => '[image]' }),
53-
Mention, // user @mention
53+
Mention.configure({}),
5454
Iframe.extend({
55-
renderText: ({ node }) =>
56-
'[embed]' + node.attrs.src ? `(${node.attrs.src})` : '',
55+
renderText: ({ node }) => {
56+
return `[embed]${node.attrs.src ? `(${node.attrs.src})` : ''}`
57+
},
5758
}),
5859
]
5960

web/hooks/use-lovers.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ export const useCompatibleLovers = (
3030
} else if (userId === null) setData(null)
3131
}, [userId])
3232

33-
console.log('debug', data)
3433
if (data && lover && options?.sortWithModifiers) {
3534
data.compatibleLovers = sortBy(data.compatibleLovers, (l) => {
3635
const modifier = !lover ? 1 : getLoversCompatibilityFactor(lover, l)

0 commit comments

Comments
 (0)