mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
Add streak.expires to the API
This commit is contained in:
parent
222bf84eab
commit
a9744ff4ad
2 changed files with 2 additions and 0 deletions
|
|
@ -49,6 +49,7 @@ export interface MastodonAccount {
|
|||
days: number;
|
||||
start: string | null;
|
||||
end: string | null;
|
||||
expires: string | null;
|
||||
};
|
||||
};
|
||||
domain?: string;
|
||||
|
|
|
|||
|
|
@ -121,6 +121,7 @@ function renderAccount(event: Omit<DittoEvent, 'id' | 'sig'>, opts: ToAccountOpt
|
|||
days: streakDays,
|
||||
start: streakStart ? nostrDate(streakStart).toISOString() : null,
|
||||
end: streakEnd ? nostrDate(streakEnd).toISOString() : null,
|
||||
expires: streakEnd ? nostrDate(streakEnd + streakWindow).toISOString() : null,
|
||||
},
|
||||
},
|
||||
domain: parsed05?.domain,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue