support Mastodon v4 "link header" pagination
This commit is contained in:
parent
3d8930f070
commit
fc1d0c958c
6 changed files with 323 additions and 84 deletions
|
|
@ -51,12 +51,14 @@ export class MastodonClientService {
|
|||
return new Misskey(baseUrl, accessToken, userAgent);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the base URL (origin) of the incoming request
|
||||
*/
|
||||
public getBaseUrl(request: FastifyRequest): string {
|
||||
return `${request.protocol}://${request.host}`;
|
||||
}
|
||||
readonly getBaseUrl = getBaseUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the base URL (origin) of the incoming request
|
||||
*/
|
||||
export function getBaseUrl(request: FastifyRequest): string {
|
||||
return `${request.protocol}://${request.host}`;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue