From 23f77fc878f761ae7e15035e4949067ed6d1c0a3 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 27 Aug 2023 10:10:36 +0900 Subject: [PATCH] tweak --- locales/ja-JP.yml | 2 -- .../backend/src/core/activitypub/ApRendererService.ts | 2 +- .../src/core/activitypub/models/ApEventService.ts | 11 ----------- packages/frontend/src/components/MkEventEditor.vue | 6 +++--- 4 files changed, 4 insertions(+), 17 deletions(-) diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 814e412e3a..c270a64996 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -1136,7 +1136,6 @@ _serverRules: description: "新規登録前に表示する、サーバーの簡潔なルールを設定します。内容は利用規約の要約とすることを推奨します。" _event: - title: "題名" startDateTime: "開始日時" endDateTime: "終了日時" startDate: "開始日" @@ -1146,7 +1145,6 @@ _event: detailName: "属性" detailValue: "値" location: "Location" - url: "URL" doorTime: "Door Time" organizer: "Organizer" organizerLink: "Organizer Link" diff --git a/packages/backend/src/core/activitypub/ApRendererService.ts b/packages/backend/src/core/activitypub/ApRendererService.ts index 6bd450df99..90caeb1392 100644 --- a/packages/backend/src/core/activitypub/ApRendererService.ts +++ b/packages/backend/src/core/activitypub/ApRendererService.ts @@ -23,7 +23,7 @@ import { MfmService } from '@/core/MfmService.js'; import { UserEntityService } from '@/core/entities/UserEntityService.js'; import { DriveFileEntityService } from '@/core/entities/DriveFileEntityService.js'; import type { MiUserKeypair } from '@/models/entities/UserKeypair.js'; -import type { UsersRepository, UserProfilesRepository, NotesRepository, DriveFilesRepository, PollsRepository } from '@/models/index.js'; +import type { UsersRepository, UserProfilesRepository, NotesRepository, DriveFilesRepository, PollsRepository, EventsRepository } from '@/models/index.js'; import { bindThis } from '@/decorators.js'; import { CustomEmojiService } from '@/core/CustomEmojiService.js'; import { isNotNull } from '@/misc/is-not-null.js'; diff --git a/packages/backend/src/core/activitypub/models/ApEventService.ts b/packages/backend/src/core/activitypub/models/ApEventService.ts index c6f7020364..5ea32b4adc 100644 --- a/packages/backend/src/core/activitypub/models/ApEventService.ts +++ b/packages/backend/src/core/activitypub/models/ApEventService.ts @@ -1,7 +1,5 @@ import { Inject, Injectable } from '@nestjs/common'; import { DI } from '@/di-symbols.js'; -import type { EventsRepository, NotesRepository } from '@/models/index.js'; -import type { Config } from '@/config.js'; import type Logger from '@/logger.js'; import { bindThis } from '@/decorators.js'; import { IEvent } from '@/models/entities/Event.js'; @@ -16,15 +14,6 @@ export class ApEventService { private logger: Logger; constructor( - @Inject(DI.config) - private config: Config, - - @Inject(DI.notesRepository) - private notesRepository: NotesRepository, - - @Inject(DI.eventsRepository) - private eventsRepository: EventsRepository, - private apResolverService: ApResolverService, private apLoggerService: ApLoggerService, ) { diff --git a/packages/frontend/src/components/MkEventEditor.vue b/packages/frontend/src/components/MkEventEditor.vue index 6f66c1ad87..e3d99d5227 100644 --- a/packages/frontend/src/components/MkEventEditor.vue +++ b/packages/frontend/src/components/MkEventEditor.vue @@ -1,7 +1,7 @@