fix: missing await in messages, incomplete SW locale cache, captcha bypass via drafts

This commit is contained in:
2026-02-08 10:44:59 +01:00
parent bc7e702e6e
commit 727ec17abd
3 changed files with 7 additions and 3 deletions

View File

@@ -144,7 +144,7 @@ class PageCreate extends HTMLElement {
const user = await auth.getUser()
if (user?.id) {
const listings = await directus.get('/items/listings', {
filter: { user_created: { _eq: user.id } },
filter: { user_created: { _eq: user.id }, status: { _eq: 'published' } },
limit: 1
})
this.isNewAccount = !listings.data || listings.data.length === 0

View File

@@ -40,7 +40,7 @@ class PageMessages extends HTMLElement {
async loadConversations() {
try {
const user = auth.getUser()
const user = await auth.getUser()
if (!user) {
this.loading = false
this.updateContent()