@@ -175,8 +175,6 @@ function saveCursor(items, numQueries) {
175
175
}
176
176
cursors . push ( nextCursor ) ;
177
177
}
178
- console . log ( "subcursors" , JSON . stringify ( subcursors , null , 2 ) ) ;
179
- console . log ( "cursors" , JSON . stringify ( cursors , null , 2 ) ) ;
180
178
181
179
let allTuples = [ ] ;
182
180
for ( let cursor of cursors ) {
@@ -198,8 +196,6 @@ function saveCursor(items, numQueries) {
198
196
allTuples . push ( tuple ) ;
199
197
}
200
198
let flatCursor = JSON . stringify ( allTuples , null , 0 ) ;
201
- console . log ( "flatCursor" , flatCursor ) ;
202
-
203
199
return flatCursor ;
204
200
}
205
201
@@ -260,7 +256,6 @@ export async function getFeedSkeleton(request, env) {
260
256
261
257
const numQueries = allQueries . length ;
262
258
let origCursor = loadCursor ( cursorParam ) ;
263
- console . log ( "origCursor" , JSON . stringify ( origCursor , null , 2 ) ) ;
264
259
if ( origCursor . length === 0 ) {
265
260
origCursor = null ;
266
261
} else if ( origCursor . length !== numQueries ) {
@@ -304,7 +299,6 @@ export async function getFeedSkeleton(request, env) {
304
299
}
305
300
}
306
301
307
- console . log ( "items.length" , items . length ) ;
308
302
items = items . toSorted ( ( b , a ) =>
309
303
a . timestamp === b . timestamp ? 0 : a . timestamp < b . timestamp ? - 1 : 1
310
304
) ;
@@ -315,7 +309,6 @@ export async function getFeedSkeleton(request, env) {
315
309
for ( let item of items ) {
316
310
feed . push ( { post : item . atURL } ) ;
317
311
}
318
- console . log ( "feed.length" , feed . length ) ;
319
312
320
313
let cursor = saveCursor ( items , numQueries ) ;
321
314
return jsonResponse ( { feed : feed , cursor : cursor } ) ;
@@ -391,7 +384,6 @@ function buildQueries(allTerms, cursorParam = null) {
391
384
}
392
385
393
386
async function fetchUser ( session , user , cursor = null ) {
394
- console . log ( "user" , user ) ;
395
387
let response = await appBskyFeedGetAuthorFeed ( session , user , cursor ) ;
396
388
if ( response !== null ) {
397
389
return await response . json ( ) ;
0 commit comments