diff --git a/app.vue b/app.vue index 0903d35..d6a6802 100644 --- a/app.vue +++ b/app.vue @@ -53,12 +53,12 @@ useSeoMeta({ return titleChunk ? `${titleChunk} ยท Versia` : "Versia"; }, title: computed(() => instance.value?.title ?? ""), - ogImage: computed(() => instance.value?.banner.url), + ogImage: computed(() => instance.value?.banner?.url), twitterTitle: computed(() => instance.value?.title ?? ""), twitterDescription: computed(() => convert(description.value?.content ?? ""), ), - twitterImage: computed(() => instance.value?.banner.url), + twitterImage: computed(() => instance.value?.banner?.url), description: computed(() => convert(description.value?.content ?? "")), ogDescription: computed(() => convert(description.value?.content ?? "")), ogSiteName: "Versia", diff --git a/components/preferences/emojis/uploader.vue b/components/preferences/emojis/uploader.vue index 319a7dc..96df307 100644 --- a/components/preferences/emojis/uploader.vue +++ b/components/preferences/emojis/uploader.vue @@ -163,26 +163,25 @@ const formSchema = toTypedSchema( .refine( (v) => v.size <= - // @ts-expect-error Types aren't updated with this new value yet (identity.value?.instance.configuration.emojis - .emoji_size_limit ?? 0), + .emoji_size_limit ?? Number.POSITIVE_INFINITY), m.orange_weird_parakeet_hug({ - // @ts-expect-error Types aren't updated with this new value yet - count: identity.value?.instance.configuration.emojis - .emoji_size_limit, + count: + identity.value?.instance.configuration.emojis + .emoji_size_limit ?? Number.POSITIVE_INFINITY, }), ), shortcode: z .string() .min(1) .max( - // @ts-expect-error Types aren't updated with this new value yet identity.value?.instance.configuration.emojis - .max_emoji_shortcode_characters, + .max_emoji_shortcode_characters ?? Number.POSITIVE_INFINITY, m.solid_inclusive_owl_hug({ - // @ts-expect-error Types aren't updated with this new value yet - count: identity.value?.instance.configuration.emojis - .max_emoji_shortcode_characters, + count: + identity.value?.instance.configuration.emojis + .max_emoji_shortcode_characters ?? + Number.POSITIVE_INFINITY, }), ) .regex(emojiValidator), @@ -199,13 +198,14 @@ const formSchema = toTypedSchema( alt: z .string() .max( - // @ts-expect-error Types aren't updated with this new value yet identity.value?.instance.configuration.emojis - .max_emoji_description_characters, + .max_emoji_description_characters ?? + Number.POSITIVE_INFINITY, m.key_ago_hound_emerge({ - // @ts-expect-error Types aren't updated with this new value yet - count: identity.value?.instance.configuration.emojis - .max_emoji_description_characters, + count: + identity.value?.instance.configuration.emojis + .max_emoji_description_characters ?? + Number.POSITIVE_INFINITY, }), ) .optional(), @@ -242,4 +242,4 @@ const submit = handleSubmit(async (values) => { toast.dismiss(id); } }); - \ No newline at end of file + diff --git a/components/preferences/profile/editor.vue b/components/preferences/profile/editor.vue index b7d94a5..9552776 100644 --- a/components/preferences/profile/editor.vue +++ b/components/preferences/profile/editor.vue @@ -24,6 +24,7 @@ + @@ -195,7 +196,7 @@ const formSchema = toTypedSchema( (v) => v.size <= (identity.value?.instance.configuration.accounts - .header_size_limit ?? 0), + .header_size_limit ?? Number.POSITIVE_INFINITY), m.civil_icy_ant_mend({ size: identity.value?.instance.configuration.accounts .header_size_limit, @@ -208,7 +209,7 @@ const formSchema = toTypedSchema( (v) => v.size <= (identity.value?.instance.configuration.accounts - .avatar_size_limit ?? 0), + .avatar_size_limit ?? Number.POSITIVE_INFINITY), m.zippy_caring_raven_edit({ size: identity.value?.instance.configuration.accounts .avatar_size_limit,