diff --git a/CHANGELOG_yojo.md b/CHANGELOG_yojo.md index b0fdb9407c..bf6703e571 100644 --- a/CHANGELOG_yojo.md +++ b/CHANGELOG_yojo.md @@ -21,7 +21,7 @@ ### Release Date ### General -- +- 連合過激派によってローカルのみ投稿機能は削除されました ### Client - diff --git a/packages/backend/src/server/api/endpoints/notes/create.ts b/packages/backend/src/server/api/endpoints/notes/create.ts index fe5dfbd1e2..662aa4580a 100644 --- a/packages/backend/src/server/api/endpoints/notes/create.ts +++ b/packages/backend/src/server/api/endpoints/notes/create.ts @@ -143,7 +143,6 @@ export const paramDef = { type: 'string', format: 'misskey:id', } }, cw: { type: 'string', nullable: true, minLength: 1, maxLength: 100 }, - localOnly: { type: 'boolean', default: false }, reactionAcceptance: { type: 'string', nullable: true, enum: [null, 'likeOnly', 'likeOnlyForRemote', 'nonSensitiveOnly', 'nonSensitiveOnlyForLocalLikeOnlyForRemote'], default: null }, disableRightClick: { type: 'boolean', default: false }, noExtractMentions: { type: 'boolean', default: false }, @@ -364,14 +363,7 @@ export default class extends Endpoint { // eslint- } } - let channel: MiChannel | null = null; - if (ps.channelId != null) { - channel = await this.channelsRepository.findOneBy({ id: ps.channelId, isArchived: false }); - - if (channel == null) { - throw new ApiError(meta.errors.noSuchChannel); - } - } + const channel: MiChannel | null = null; // 投稿を作成 try { @@ -393,7 +385,7 @@ export default class extends Endpoint { // eslint- metadata: ps.event.metadata ?? {}, } : undefined, cw: ps.cw, - localOnly: ps.localOnly, + localOnly: false, reactionAcceptance: ps.reactionAcceptance, disableRightClick: ps.disableRightClick, visibility: ps.visibility, diff --git a/packages/cherrypick-js/src/autogen/types.ts b/packages/cherrypick-js/src/autogen/types.ts index 08aec978fc..05c02895b5 100644 --- a/packages/cherrypick-js/src/autogen/types.ts +++ b/packages/cherrypick-js/src/autogen/types.ts @@ -21727,8 +21727,6 @@ export type operations = { visibility?: 'public' | 'home' | 'followers' | 'specified'; visibleUserIds?: string[]; cw?: string | null; - /** @default false */ - localOnly?: boolean; /** * @default null * @enum {string|null} diff --git a/packages/frontend/src/components/MkPostForm.vue b/packages/frontend/src/components/MkPostForm.vue index 406572fb10..1bdc94c364 100644 --- a/packages/frontend/src/components/MkPostForm.vue +++ b/packages/frontend/src/components/MkPostForm.vue @@ -32,10 +32,6 @@ SPDX-License-Identifier: AGPL-3.0-only {{ channel.name }} - - -