properly shorten links in quote embeds (#2570)

* properly shorten links in quote embeds

* lint
This commit is contained in:
Hailey
2024-01-19 16:15:07 -08:00
committed by GitHub
parent 920d48849e
commit eb07b983bd
3 changed files with 41 additions and 20 deletions
+2 -1
View File
@@ -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