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() const user = await auth.getUser()
if (user?.id) { if (user?.id) {
const listings = await directus.get('/items/listings', { const listings = await directus.get('/items/listings', {
filter: { user_created: { _eq: user.id } }, filter: { user_created: { _eq: user.id }, status: { _eq: 'published' } },
limit: 1 limit: 1
}) })
this.isNewAccount = !listings.data || listings.data.length === 0 this.isNewAccount = !listings.data || listings.data.length === 0

View File

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

View File

@@ -1,4 +1,4 @@
const CACHE_NAME = 'dgray-v47'; const CACHE_NAME = 'dgray-v48';
const STATIC_ASSETS = [ const STATIC_ASSETS = [
'/', '/',
'/index.html', '/index.html',
@@ -72,6 +72,10 @@ const STATIC_ASSETS = [
'/locales/de.json', '/locales/de.json',
'/locales/en.json', '/locales/en.json',
'/locales/fr.json', '/locales/fr.json',
'/locales/it.json',
'/locales/es.json',
'/locales/pt.json',
'/locales/ru.json',
// Fonts // Fonts
'/assets/fonts/Inter-Regular.woff2', '/assets/fonts/Inter-Regular.woff2',