This commit is contained in:
Mateusz Gruszczyński committed 2026-10-14 14:55:04 +02:00
1 parent 9e133628e5
commit 0abc8e871d
6 files changed
+47 -7

No files matched your search

+3 -1
View File
@@ -277,7 +277,9 @@ export function startNoteEditor(adapter) {
setMarkdownMentions([]);
mentionAutocomplete.setUsers([]);
mentionNavigator.setUsers([]);
if (!accountSession) { render(); return; }
// Session validation can finish before loadNoteInfo(); avoid a premature
// request (and a second request when note info becomes available).
if (!accountSession || !info) { render(); return; }
try {
const params = new URLSearchParams({ kind: adapter.access.kind, slug: adapter.access.key });
const response = await api(`/api/auth/resources/mentions?${params}`);