Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix draft restore to calculate shortened grapheme length for links (#10103)

Co-authored-by: Claude <noreply@anthropic.com>

authored by

Samuel Newman
Claude
and committed by
GitHub
fa84c451 894e2b89

+2 -1
+2 -1
src/view/com/composer/drafts/state/api.ts
··· 8 8 import {getDeviceName} from '#/lib/deviceName' 9 9 import {getImageDim} from '#/lib/media/manip' 10 10 import {mimeToExt} from '#/lib/media/video/util' 11 + import {shortenLinks} from '#/lib/strings/rich-text-manip' 11 12 import {type ComposerImage} from '#/state/gallery' 12 13 import {type Gif} from '#/state/queries/tenor' 13 14 import {threadgateAllowUISettingToAllowRecordValue} from '#/state/queries/threadgate/util' ··· 570 571 return { 571 572 id: `draft-post-${index}`, 572 573 richtext, 573 - shortenedGraphemeLength: richtext.graphemeLength, 574 + shortenedGraphemeLength: shortenLinks(richtext).graphemeLength, 574 575 labels, 575 576 embed, 576 577 } as PostDraft