Skip to content

Commit

Permalink
(backend) dont explicitly specify that the note is in hanamode
Browse files Browse the repository at this point in the history
  • Loading branch information
kakkokari-gtyih committed Aug 15, 2024
1 parent e5c9107 commit 6e10704
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions packages/backend/src/server/api/endpoints/notes/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ export const paramDef = {
replyId: { type: 'string', format: 'misskey:id', nullable: true },
renoteId: { type: 'string', format: 'misskey:id', nullable: true },
channelId: { type: 'string', format: 'misskey:id', nullable: true },
isNoteInHanaMode: { type: 'boolean', default: false },

// anyOf内にバリデーションを書いても最初の一つしかチェックされない
// See https://github.com/misskey-dev/misskey/pull/10082
Expand Down Expand Up @@ -378,7 +377,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
renote,
cw: ps.cw,
localOnly: ps.localOnly,
isNoteInHanaMode: ps.isNoteInHanaMode,
isNoteInHanaMode: me.isInHanaMode,
reactionAcceptance: ps.reactionAcceptance,
visibility: ps.visibility,
visibleUsers,
Expand Down
2 changes: 0 additions & 2 deletions packages/misskey-js/src/autogen/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21313,8 +21313,6 @@ export type operations = {
renoteId?: string | null;
/** Format: misskey:id */
channelId?: string | null;
/** @default false */
isNoteInHanaMode?: boolean;
text?: string | null;
fileIds?: string[];
mediaIds?: string[];
Expand Down

0 comments on commit 6e10704

Please sign in to comment.