diff --git a/src/App.svelte b/src/App.svelte
index e87c087..94367b1 100644
--- a/src/App.svelte
+++ b/src/App.svelte
@@ -16,7 +16,7 @@
});
});
// Infinite loading function
- const onInfinite = ({ detail: { loaded, complete } }) => {
+ const onInfinite = ({ detail: { loaded, complete } } : { detail : { loaded : () => void, complete : () => void}}) => {
getNextPosts().then((newPosts) => {
if (newPosts.length > 0) {
posts = [...posts, ...newPosts];
@@ -53,11 +53,7 @@
{/each}
diff --git a/src/lib/PostComponent.svelte b/src/lib/PostComponent.svelte
index c7c59ac..3c4178c 100644
--- a/src/lib/PostComponent.svelte
+++ b/src/lib/PostComponent.svelte
@@ -113,7 +113,7 @@
@@ -125,7 +125,7 @@
diff --git a/src/lib/pdsfetch.ts b/src/lib/pdsfetch.ts
index c4e2bdc..f60e409 100644
--- a/src/lib/pdsfetch.ts
+++ b/src/lib/pdsfetch.ts
@@ -215,7 +215,6 @@ const getCutoffDate = (postAccounts: PostsAcc[]) => {
}
});
if (cutoffDate) {
- console.log("Cutoff date:", cutoffDate);
return cutoffDate;
} else {
return new Date(now);
@@ -303,7 +302,6 @@ const getNextPosts = async () => {
return postDate <= now;
});
}
- // append the new posts to the existing posts
const newPosts = records.map((record) => {
const account = accountsMetadata.find(
@@ -316,14 +314,11 @@ const getNextPosts = async () => {
}
return new Post(record, account);
});
- console.log("Fetched posts:", newPosts);
- console.log("Metadata:", accountsMetadata);
return newPosts;
};
const fetchPostsForUser = async (did: At.Did, cursor: string | null) => {
try {
- console.log("Fetching posts for user:", did, "with Cursor: ", cursor);
const { data } = await rpc.get("com.atproto.repo.listRecords", {
params: {
repo: did as At.Identifier,