diff --git a/app/components/AttachmentItem.vue b/app/components/AttachmentItem.vue index ad47598..7f657c9 100644 --- a/app/components/AttachmentItem.vue +++ b/app/components/AttachmentItem.vue @@ -10,7 +10,7 @@ import type { SnAttachment } from '~/types/api' const props = defineProps<{ item: SnAttachment }>() -const itemType = computed(() => props.item.mime_type.split('/')[0] ?? 'unknown') +const itemType = computed(() => props.item.mimeType.split('/')[0] ?? 'unknown') const apiBase = useSolarNetworkUrl(); const remoteSource = computed(() => `${apiBase}/drive/files/${props.item.id}?original=true`) diff --git a/app/components/PostHeader.vue b/app/components/PostHeader.vue index 18608ab..d82d038 100644 --- a/app/components/PostHeader.vue +++ b/app/components/PostHeader.vue @@ -7,9 +7,9 @@ @{{ props.item.publisher.name }}

- {{ DateTime.fromISO(props.item.created_at).toRelative() }} + {{ DateTime.fromISO(props.item.createdAt).toRelative() }} ยท - {{ DateTime.fromISO(props.item.created_at).toLocaleString() }} + {{ DateTime.fromISO(props.item.createdAt).toLocaleString() }}

@@ -18,8 +18,9 @@