diff --git a/front/src/components/library/Podcasts.vue b/front/src/components/library/Podcasts.vue index a1fabe576..246810faf 100644 --- a/front/src/components/library/Podcasts.vue +++ b/front/src/components/library/Podcasts.vue @@ -148,6 +148,8 @@ const { to: upload } = useModal('upload') stack main > + +
+ +
-import type { Notification, LibraryFollow, UserFollow } from '~/types' +import type { Notification, LibraryFollow } from '~/types' +import type { components } from '~/types/generated' import { computed, ref, watchEffect, watch } from 'vue' import { useI18n } from 'vue-i18n' @@ -64,7 +65,8 @@ const notificationData = computed(() => { } } if (activity.object && activity.object.type === 'federation.Actor') { - const userFollow = activity.related_object as UserFollow + // TODO: Correctly type `activity` instead of coercing the field: + const userFollow = activity.related_object as components["schemas"]["Follow"] const detailUrl = { name: 'profile.full', params: { username: activity.actor.preferred_username, domain: activity.actor.domain } } if (activity.related_object?.approved === null) { diff --git a/front/src/generated/types.ts b/front/src/generated/types.ts index 0ba91ea51..71186acda 100644 --- a/front/src/generated/types.ts +++ b/front/src/generated/types.ts @@ -6755,6 +6755,10 @@ export interface components { /** Format: uuid */ channel: string; }; + LanguageItem: { + value: string; + label: string; + }; Library: { /** Format: uri */ fid: string; @@ -7651,6 +7655,10 @@ export interface components { MetadataUsageFavorite: { readonly tracks: components["schemas"]["TotalCount"]; }; + MetedataChoices: { + language: components["schemas"]["LanguageItem"][]; + itunes_category: components["schemas"]["iTunesCategoryItem"][]; + }; ModerationTarget: { type: components["schemas"]["ModerationTargetTypeEnum"]; id: string; @@ -8977,6 +8985,11 @@ export interface components { VerifyEmailRequest: { key: string; }; + iTunesCategoryItem: { + value: string; + label: string; + children: string; + }; }; responses: never; parameters: never; @@ -10266,7 +10279,7 @@ export interface operations { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Channel"]; + "application/json": components["schemas"]["MetedataChoices"]; }; }; }; @@ -17225,7 +17238,7 @@ export interface operations { [name: string]: unknown; }; content: { - "application/json": components["schemas"]["Channel"]; + "application/json": components["schemas"]["MetedataChoices"]; }; }; };