An open source supporter broker powered by high-fives. high-five.atprotofans.com/

bug: off-by-one bug in link facet

+2 -2
+2 -2
internal/handlers/highfive.go
··· 418 418 mentionByteEnd := mentionByteStart + len(mentionText) 419 419 420 420 // Calculate byte positions for the link facet 421 - // "I gave @{handle} a high-five on " = 7 + len(mentionText) + 17 bytes 422 - linkByteStart := mentionByteEnd + 17 // " a high-five on " = 17 bytes 421 + // " a high-five on " = 16 bytes 422 + linkByteStart := mentionByteEnd + 16 423 423 linkByteEnd := linkByteStart + len(highFiveURL) 424 424 425 425 postRecord := &atproto.FeedPost{