mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-13 10:34:19 +01:00
Fix Mastodon legacy pagination
This commit is contained in:
15
src/interfaces/DittoPagination.ts
Normal file
15
src/interfaces/DittoPagination.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
/** Based on Mastodon pagination. */
|
||||
export interface DittoPagination {
|
||||
/** Lowest Nostr event `created_at` timestamp. */
|
||||
since?: number;
|
||||
/** Highest Nostr event `created_at` timestamp. */
|
||||
until?: number;
|
||||
/** @deprecated Mastodon apps are supposed to use the `Link` header. */
|
||||
max_id?: string;
|
||||
/** @deprecated Mastodon apps are supposed to use the `Link` header. */
|
||||
min_id?: string;
|
||||
/** Maximum number of results to return. Default 20, maximum 40. */
|
||||
limit?: number;
|
||||
/** Used by Ditto to offset tag values in Nostr list events. */
|
||||
offset?: number;
|
||||
}
|
||||
Reference in New Issue
Block a user