From eb07b983bd70cb9e913bb40a2ac0686a33fc3f6d Mon Sep 17 00:00:00 2001 From: Hailey <153161762+haileyok@users.noreply.github.com> Date: Fri, 19 Jan 2024 16:15:07 -0800 Subject: properly shorten links in quote embeds (#2570) * properly shorten links in quote embeds * lint --- src/state/shell/composer.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/state/shell/composer.tsx') diff --git a/src/state/shell/composer.tsx b/src/state/shell/composer.tsx index 51376fd5a..2133ee6b0 100644 --- a/src/state/shell/composer.tsx +++ b/src/state/shell/composer.tsx @@ -1,5 +1,5 @@ import React from 'react' -import {AppBskyEmbedRecord} from '@atproto/api' +import {AppBskyEmbedRecord, AppBskyRichtextFacet} from '@atproto/api' import {useNonReactiveCallback} from '#/lib/hooks/useNonReactiveCallback' export interface ComposerOptsPostRef { @@ -17,6 +17,7 @@ export interface ComposerOptsQuote { uri: string cid: string text: string + facets?: AppBskyRichtextFacet.Main[] indexedAt: string author: { did: string -- cgit 1.4.1