diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2022-12-04 10:32:12 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2022-12-04 10:32:12 +0900 |
| commit | 8950114f7d494c02f6d2ff9fe11a5539cdfcfd66 (patch) | |
| tree | 0aaa6fba13a3937fbf031bc25cc4527ff39ffb41 /packages | |
| parent | refactor (diff) | |
| download | sharkey-8950114f7d494c02f6d2ff9fe11a5539cdfcfd66.tar.gz sharkey-8950114f7d494c02f6d2ff9fe11a5539cdfcfd66.tar.bz2 sharkey-8950114f7d494c02f6d2ff9fe11a5539cdfcfd66.zip | |
refactor: remove needless const notation
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/backend/src/server/ActivityPubServerService.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/server/ActivityPubServerService.ts b/packages/backend/src/server/ActivityPubServerService.ts index 0ce2c9cd97..015c8f2b4c 100644 --- a/packages/backend/src/server/ActivityPubServerService.ts +++ b/packages/backend/src/server/ActivityPubServerService.ts @@ -433,7 +433,7 @@ export class ActivityPubServerService { fastify.get<{ Params: { note: string; } }>('/notes/:note', { constraints: { apOrHtml: 'ap' } }, async (request, reply) => { const note = await this.notesRepository.findOneBy({ id: request.params.note, - visibility: In(['public' as const, 'home' as const]), + visibility: In(['public', 'home']), localOnly: false, }); @@ -462,7 +462,7 @@ export class ActivityPubServerService { const note = await this.notesRepository.findOneBy({ id: request.params.note, userHost: IsNull(), - visibility: In(['public' as const, 'home' as const]), + visibility: In(['public', 'home']), localOnly: false, }); |