this repo has no description

only top level posts

Changed files
+5 -4
peruse
+1 -1
peruse/get_close_by.go
···
WHERE all_dids.did IS NOT NULL
ORDER BY closeness_score DESC
-
LIMIT 1000
`
···
WHERE all_dids.did IS NOT NULL
ORDER BY closeness_score DESC
+
LIMIT 500
`
+4 -3
peruse/handle_chrono_feed.go
···
if err := s.conn.Select(ctx, &posts, fmt.Sprintf(`
SELECT uri
FROM default.post
-
WHERE did IN (?)
-
AND rkey < ?
ORDER BY created_at DESC
LIMIT 50
-
`), cbdids, req.Cursor); err != nil {
s.logger.Error("error getting close by chrono posts", "error", err)
return helpers.ServerError(e, "FeedError", "")
}
···
if err := s.conn.Select(ctx, &posts, fmt.Sprintf(`
SELECT uri
FROM default.post
+
WHERE rkey < ?
+
AND did IN (?)
+
AND parent_uri = ''
ORDER BY created_at DESC
LIMIT 50
+
`), req.Cursor, cbdids); err != nil {
s.logger.Error("error getting close by chrono posts", "error", err)
return helpers.ServerError(e, "FeedError", "")
}