Updated config documentation
This commit is contained in:
parent
9a2ea50420
commit
dc3039ef8b
2 changed files with 12 additions and 8 deletions
|
@ -9,14 +9,17 @@ export class Config {
|
||||||
static readonly PDS_URL: string = "https://pds.witchcraft.systems";
|
static readonly PDS_URL: string = "https://pds.witchcraft.systems";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The base URL of the frontend service for linking to replies
|
* The base URL of the frontend service for linking to replies/quotes/accounts etc.
|
||||||
* @default "https://deer.social"
|
* @default "https://deer.social"
|
||||||
*/
|
*/
|
||||||
static readonly FRONTEND_URL: string = "https://deer.social";
|
static readonly FRONTEND_URL: string = "https://deer.social";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Maximum number of posts to show in the feed (across all users)
|
* Maximum number of posts to fetch from the PDS per request
|
||||||
* @default 100
|
* Should be around 20 for about 10 users on the pds
|
||||||
|
* The more users you have, the lower the number should be
|
||||||
|
* since sorting is slow and is done on the frontend
|
||||||
|
* @default 20
|
||||||
*/
|
*/
|
||||||
static readonly MAX_POSTS: number = 20;
|
static readonly MAX_POSTS: number = 20;
|
||||||
|
|
||||||
|
|
|
@ -240,6 +240,7 @@ const filterPostsByDate = (posts: PostsAcc[], cutoffDate: Date) => {
|
||||||
});
|
});
|
||||||
return filteredPosts;
|
return filteredPosts;
|
||||||
};
|
};
|
||||||
|
// nightmare function. However it works so I am not touching it
|
||||||
const getNextPosts = async () => {
|
const getNextPosts = async () => {
|
||||||
if (!accountsMetadata.length) {
|
if (!accountsMetadata.length) {
|
||||||
accountsMetadata = await getAllMetadataFromPds();
|
accountsMetadata = await getAllMetadataFromPds();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue