···9 static readonly PDS_URL: string = "https://pds.witchcraft.systems";
1011 /**
12- * The base URL of the frontend service for linking to replies
13 * @default "https://deer.social"
14 */
15 static readonly FRONTEND_URL: string = "https://deer.social";
1617 /**
18- * Maximum number of posts to show in the feed (across all users)
19- * @default 100
00020 */
21 static readonly MAX_POSTS: number = 20;
22···27 static readonly FOOTER_TEXT: string =
28 "Astrally projected from <a href='https://witchcraft.systems' target='_blank'>witchcraft.systems</a>";
2930- /**
31- * Whether to show the posts that are in the future
32- * @default false
33- */
34- static readonly SHOW_FUTURE_POSTS: boolean = false;
35}
···9 static readonly PDS_URL: string = "https://pds.witchcraft.systems";
1011 /**
12+ * The base URL of the frontend service for linking to replies/quotes/accounts etc.
13 * @default "https://deer.social"
14 */
15 static readonly FRONTEND_URL: string = "https://deer.social";
1617 /**
18+ * Maximum number of posts to fetch from the PDS per request
19+ * Should be around 20 for about 10 users on the pds
20+ * The more users you have, the lower the number should be
21+ * since sorting is slow and is done on the frontend
22+ * @default 20
23 */
24 static readonly MAX_POSTS: number = 20;
25···30 static readonly FOOTER_TEXT: string =
31 "Astrally projected from <a href='https://witchcraft.systems' target='_blank'>witchcraft.systems</a>";
3233+ /**
34+ * Whether to show the posts that are in the future
35+ * @default false
36+ */
37+ static readonly SHOW_FUTURE_POSTS: boolean = false;
38}
···240 });
241 return filteredPosts;
242};
243+// nightmare function. However it works so I am not touching it
244const getNextPosts = async () => {
245 if (!accountsMetadata.length) {
246 accountsMetadata = await getAllMetadataFromPds();