fix: missing await in messages, incomplete SW locale cache, captcha bypass via drafts
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const CACHE_NAME = 'dgray-v47';
|
||||
const CACHE_NAME = 'dgray-v48';
|
||||
const STATIC_ASSETS = [
|
||||
'/',
|
||||
'/index.html',
|
||||
@@ -72,6 +72,10 @@ const STATIC_ASSETS = [
|
||||
'/locales/de.json',
|
||||
'/locales/en.json',
|
||||
'/locales/fr.json',
|
||||
'/locales/it.json',
|
||||
'/locales/es.json',
|
||||
'/locales/pt.json',
|
||||
'/locales/ru.json',
|
||||
|
||||
// Fonts
|
||||
'/assets/fonts/Inter-Regular.woff2',
|
||||
|
||||
Reference in New Issue
Block a user