my fork of the bluesky client

bskyweb: fix post text expansion (#6016)

Co-authored-by: Hailey <me@haileyok.com>

authored by

devin ivy
Hailey
and committed by
GitHub
d5f8d822 aa6aad65

+3 -1
+3 -1
bskyweb/cmd/bskyweb/formating.go
··· 23 23 } 24 24 25 25 // bail out if bounds checks fail 26 - if int(facet.Index.ByteStart)+charsAdded > len(postText) || int(facet.Index.ByteEnd)+charsAdded > len(postText) { 26 + if facet.Index.ByteStart > facet.Index.ByteEnd || 27 + int(facet.Index.ByteStart)+charsAdded > len(postText) || 28 + int(facet.Index.ByteEnd)+charsAdded > len(postText) { 27 29 return false 28 30 } 29 31 linkText := postText[int(facet.Index.ByteStart)+charsAdded : int(facet.Index.ByteEnd)+charsAdded]