diff --git a/components/status/StatusPreviewCard.vue b/components/status/StatusPreviewCard.vue index 815ad5e8..7383908e 100644 --- a/components/status/StatusPreviewCard.vue +++ b/components/status/StatusPreviewCard.vue @@ -22,11 +22,15 @@ const isSquare = $computed(() => ( const providerName = $computed(() => props.card.providerName ? props.card.providerName : new URL(props.card.url).hostname) const gitHubCards = $(computedEager(() => useFeatureFlags().experimentalGitHubCards)) + +const isMastodonLink = true + // TODO: handle card.type: 'photo' | 'video' | 'rich'; diff --git a/components/status/StatusPreviewCardInfo.vue b/components/status/StatusPreviewCardInfo.vue index 4a683959..e33f508c 100644 --- a/components/status/StatusPreviewCardInfo.vue +++ b/components/status/StatusPreviewCardInfo.vue @@ -7,6 +7,7 @@ const props = defineProps<{ root?: boolean /** For the preview image, only the small image mode is displayed */ provider?: string + isSquare?: boolean }>() @@ -28,7 +29,7 @@ const props = defineProps<{ >{{ card.title }}

{{ card.description }}

diff --git a/components/status/StatusPreviewMastodon.vue b/components/status/StatusPreviewMastodon.vue new file mode 100644 index 00000000..2458d559 --- /dev/null +++ b/components/status/StatusPreviewMastodon.vue @@ -0,0 +1,46 @@ + + +