kopia lustrzana https://github.com/gabipurcaru/followgraph
increase limits
rodzic
744c4d3474
commit
6a83bf8f73
|
@ -38,7 +38,7 @@ async function accountFollows(handle: string): Promise<Array<AccountDetails>> {
|
|||
|
||||
let nextPage: string | null = `https://${domain}/api/v1/accounts/${id}/following`;
|
||||
let data: Array<AccountDetails> = [];
|
||||
while (nextPage && data.length <= 50) {
|
||||
while (nextPage && data.length <= 200) {
|
||||
console.log(`Get page: ${nextPage}`);
|
||||
let response;
|
||||
let page;
|
||||
|
@ -206,7 +206,7 @@ export function Content({ }) {
|
|||
<div className="max-w-4xl content-center px-2 sm:px-8 py-4 bg-white border rounded-lg shadow-md dark:bg-gray-800 dark:border-gray-700">
|
||||
<div className="flow-root">
|
||||
<ul role="list" className="divide-y divide-gray-200 dark:divide-gray-700">
|
||||
{follows.slice(0, 100).map(account => <AccountDetails key={account.acct} account={account} mainDomain={domain} />)}
|
||||
{follows.slice(0, 500).map(account => <AccountDetails key={account.acct} account={account} mainDomain={domain} />)}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Ładowanie…
Reference in New Issue