this repo has no description

increase size of close

Changed files
+9 -3
peruse
+1 -1
peruse/get_close_by.go
···
WHERE all_dids.did IS NOT NULL
ORDER BY closeness_score DESC
-
LIMIT 200
+
LIMIT 1000
`
+8 -2
peruse/handle_chrono_feed.go
···
import (
"fmt"
+
"strings"
"github.com/haileyok/peruse/internal/helpers"
"github.com/haileyok/photocopy/models"
···
}
var fpis []FeedPostItem
+
var cursor string
-
for _, p := range posts {
+
for i, p := range posts {
fpis = append(fpis, FeedPostItem{
Post: p.Uri,
})
+
if i == len(posts)-1 {
+
pts := strings.Split(p.Uri, "/")
+
cursor = pts[len(pts)-1]
+
}
}
return e.JSON(200, FeedSkeletonResponse{
-
Cursor: &posts[len(posts)-1].Rkey,
+
Cursor: &cursor,
Feed: fpis,
})
}