mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Bump the timeout a bit when fetching an individual status
This commit is contained in:
parent
8c52ae80e4
commit
e5c8f8c146
1 changed files with 6 additions and 1 deletions
|
|
@ -29,7 +29,12 @@ const createStatusSchema = z.object({
|
|||
const statusController: AppController = async (c) => {
|
||||
const id = c.req.param('id');
|
||||
|
||||
const event = await getEvent(id, { kind: 1, relations: ['author', 'event_stats', 'author_stats'] });
|
||||
const event = await getEvent(id, {
|
||||
kind: 1,
|
||||
relations: ['author', 'event_stats', 'author_stats'],
|
||||
signal: AbortSignal.timeout(1500),
|
||||
});
|
||||
|
||||
if (event) {
|
||||
return c.json(await renderStatus(event, c.get('pubkey')));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue