···99 static readonly PDS_URL: string = "https://pds.witchcraft.systems";
10101111 /**
1212- * The base URL of the frontend service for linking to replies
1212+ * The base URL of the frontend service for linking to replies/quotes/accounts etc.
1313 * @default "https://deer.social"
1414 */
1515 static readonly FRONTEND_URL: string = "https://deer.social";
16161717 /**
1818- * Maximum number of posts to show in the feed (across all users)
1919- * @default 100
1818+ * Maximum number of posts to fetch from the PDS per request
1919+ * Should be around 20 for about 10 users on the pds
2020+ * The more users you have, the lower the number should be
2121+ * since sorting is slow and is done on the frontend
2222+ * @default 20
2023 */
2124 static readonly MAX_POSTS: number = 20;
2225···2730 static readonly FOOTER_TEXT: string =
2831 "Astrally projected from <a href='https://witchcraft.systems' target='_blank'>witchcraft.systems</a>";
29323030- /**
3131- * Whether to show the posts that are in the future
3232- * @default false
3333- */
3434- static readonly SHOW_FUTURE_POSTS: boolean = false;
3333+ /**
3434+ * Whether to show the posts that are in the future
3535+ * @default false
3636+ */
3737+ static readonly SHOW_FUTURE_POSTS: boolean = false;
3538}
+1
src/lib/pdsfetch.ts
···240240 });
241241 return filteredPosts;
242242};
243243+// nightmare function. However it works so I am not touching it
243244const getNextPosts = async () => {
244245 if (!accountsMetadata.length) {
245246 accountsMetadata = await getAllMetadataFromPds();