tangled
alpha
login
or
join now
atprotofans.com
/
high-five
11
fork
atom
An open source supporter broker powered by high-fives.
high-five.atprotofans.com/
11
fork
atom
overview
issues
pulls
pipelines
bug: off-by-one bug in link facet
Nick Gerakines
3 months ago
abcb3edd
b01baa5b
+2
-2
1 changed file
expand all
collapse all
unified
split
internal
handlers
highfive.go
+2
-2
internal/handlers/highfive.go
···
418
418
mentionByteEnd := mentionByteStart + len(mentionText)
419
419
420
420
// Calculate byte positions for the link facet
421
421
-
// "I gave @{handle} a high-five on " = 7 + len(mentionText) + 17 bytes
422
422
-
linkByteStart := mentionByteEnd + 17 // " a high-five on " = 17 bytes
421
421
+
// " a high-five on " = 16 bytes
422
422
+
linkByteStart := mentionByteEnd + 16
423
423
linkByteEnd := linkByteStart + len(highFiveURL)
424
424
425
425
postRecord := &atproto.FeedPost{