Skip to content

Commit

Permalink
Merge branch 'develop' into fix-486
Browse files Browse the repository at this point in the history
  • Loading branch information
penginn-net authored Oct 22, 2024
2 parents 513899e + d37bade commit 8384e4d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG_YOJO.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Cherrypick 4.11.1
- Fix: Opensearch利用時ファイルのセンシティブ状態が変更されたとき変更されるように
- Change: `notes/advanced-search``query`が必須ではなくなりました
- Fix: (Opensearch利用時)高度な検索でリプライ除外にするとエラーがでる
- Enhance: `api/emoji``host`を指定できるように
- Fix: ノート編集時に3001文字以上の場合編集できない問題を修正
- Fix: 通知APIがページ境界で重複する問題の修正
- Change: 絵文字を登録する際にシステムユーザーとして再アップロードするように
Expand Down
7 changes: 6 additions & 1 deletion packages/backend/src/server/api/endpoints/emoji.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ export const paramDef = {
name: {
type: 'string',
},
host: {
type: 'string',
nullable: true,
default: null,
},
},
required: ['name'],
} as const;
Expand All @@ -46,7 +51,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
const emoji = await this.emojisRepository.findOneOrFail({
where: {
name: ps.name,
host: IsNull(),
host: ps.host ?? IsNull(),
},
});

Expand Down
2 changes: 2 additions & 0 deletions packages/cherrypick-js/src/autogen/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21294,6 +21294,8 @@ export type operations = {
content: {
'application/json': {
name: string;
/** @default null */
host?: string | null;
};
};
};
Expand Down

0 comments on commit 8384e4d

Please sign in to comment.