feat: add functionality to toggle inbox document source between personal and public scopes
Build and Push Multi-Platform Images / build-and-push (push) Successful in 34s

This commit is contained in:
2026-05-04 10:17:17 +02:00
parent 8189ca54d8
commit a9c1e5fd20
4 changed files with 66 additions and 0 deletions
@@ -142,4 +142,15 @@ export class InboxController {
res.setHeader('Cache-Control', 'private, max-age=3600');
return new StreamableFile(createReadStream(filePath));
}
@Post(':id/source')
@HttpCode(204)
async updateSource(
@Param('id') id: string,
@Body() body: { source: any },
@Request() req: any,
): Promise<void> {
const preferredUsername: string | null = req.user?.preferredUsername ?? null;
await this.inboxService.updateSource(id, body.source, preferredUsername);
}
}