Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

Fix character count with intent (#6056)

authored by

dan and committed by
GitHub
1c2186bc 21b82fa1

+6 -2
+6 -2
src/view/com/composer/state/composer.ts
··· 224 224 return { 225 225 ...state, 226 226 richtext: action.richtext, 227 - shortenedGraphemeLength: shortenLinks(action.richtext).graphemeLength, 227 + shortenedGraphemeLength: getShortenedLength(action.richtext), 228 228 } 229 229 } 230 230 case 'update_labels': { ··· 516 516 { 517 517 id: nanoid(), 518 518 richtext: initRichText, 519 - shortenedGraphemeLength: 0, 519 + shortenedGraphemeLength: getShortenedLength(initRichText), 520 520 labels: [], 521 521 embed: { 522 522 quote, ··· 530 530 }, 531 531 } 532 532 } 533 + 534 + function getShortenedLength(rt: RichText) { 535 + return shortenLinks(rt).graphemeLength 536 + }