[SDK] Migrate the post pipeline and blob uploads (#11380)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -224,7 +224,6 @@ export function useUpsertLiveStatusMutation(
|
||||
) {
|
||||
const ax = useAnalytics()
|
||||
const {currentAccount} = useSession()
|
||||
const agent = useAgent()
|
||||
const pdsClient = usePdsClient()
|
||||
const queryClient = useQueryClient()
|
||||
const control = useDialogContext()
|
||||
@@ -244,15 +243,11 @@ export function useUpsertLiveStatusMutation(
|
||||
const img = await imageToThumb(linkMeta.image)
|
||||
if (img) {
|
||||
const blob = await uploadBlob(
|
||||
agent,
|
||||
pdsClient,
|
||||
img.source.path,
|
||||
img.source.mime,
|
||||
)
|
||||
/*
|
||||
* `uploadBlob` still returns the legacy `BlobRef` class
|
||||
* instance; it moves to the client with the blob pipeline.
|
||||
*/
|
||||
thumb = blob.data.blob as unknown as l.BlobRef
|
||||
thumb = blob.blob
|
||||
}
|
||||
} catch (e: any) {
|
||||
ax.logger.error(`Failed to upload thumbnail for live status`, {
|
||||
|
||||
Reference in New Issue
Block a user