From 30803767518c14a93d76530c6ab8bfe78bf3d08c Mon Sep 17 00:00:00 2001 From: KanariKanaru <93921745+kanarikanaru@users.noreply.github.com> Date: Wed, 13 Mar 2024 22:21:34 +0900 Subject: [PATCH] =?UTF-8?q?Revert:=20"enhance(frontend):=20=E3=83=AA?= =?UTF-8?q?=E3=82=A2=E3=82=AF=E3=82=B7=E3=83=A7=E3=83=B3=E3=81=AE=E7=B7=8F?= =?UTF-8?q?=E6=95=B0=E3=82=92=E8=A1=A8=E7=A4=BA=E3=81=99=E3=82=8B=E3=82=88?= =?UTF-8?q?=E3=81=86=E3=81=AB"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 - locales/index.d.ts | 4 --- locales/ja-JP.yml | 1 - .../src/core/entities/NoteEntityService.ts | 1 - .../backend/src/models/json-schema/note.ts | 4 --- packages/frontend/src/components/MkNote.vue | 25 +++++---------- .../src/components/MkNoteDetailed.vue | 31 +++++++------------ .../src/components/MkNotification.vue | 27 ++++++---------- .../src/components/MkTutorialDialog.Note.vue | 1 - .../components/MkTutorialDialog.PostNote.vue | 1 - .../components/MkTutorialDialog.Sensitive.vue | 1 - .../frontend/src/scripts/use-note-capture.ts | 2 -- packages/frontend/src/style.scss | 7 ----- packages/misskey-js/src/autogen/types.ts | 1 - 14 files changed, 29 insertions(+), 78 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 49eb3a21de67..8031fc33ecd4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,6 @@ ### Client - Enhance: 自分のノートの添付ファイルから直接ファイルの詳細ページに飛べるように - Enhance: 広告がMisskeyと同一ドメインの場合はRouterで遷移するように -- Enhance: リアクション・いいねの総数を表示するように - Enhance: リアクション受け入れが「いいねのみ」の場合はリアクション絵文字一覧を表示しないように - Fix: 一部のページ内リンクが正しく動作しない問題を修正 - Fix: 周年の実績が閏年を考慮しない問題を修正 diff --git a/locales/index.d.ts b/locales/index.d.ts index ab22bccbd04e..db6d6726fcc2 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -8925,10 +8925,6 @@ export interface Locale extends ILocale { * {n}人がリアクションしました */ "reactedBySomeUsers": ParameterizedString<"n">; - /** - * {n}人がいいねしました - */ - "likedBySomeUsers": ParameterizedString<"n">; /** * {n}人がリノートしました */ diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index a92874ae4b26..d45716661f32 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -2359,7 +2359,6 @@ _notification: sendTestNotification: "テスト通知を送信する" notificationWillBeDisplayedLikeThis: "通知はこのように表示されます" reactedBySomeUsers: "{n}人がリアクションしました" - likedBySomeUsers: "{n}人がいいねしました" renotedBySomeUsers: "{n}人がリノートしました" followedBySomeUsers: "{n}人にフォローされました" flushNotification: "通知の履歴をリセットする" diff --git a/packages/backend/src/core/entities/NoteEntityService.ts b/packages/backend/src/core/entities/NoteEntityService.ts index 22d01462e773..5b6affc6a520 100644 --- a/packages/backend/src/core/entities/NoteEntityService.ts +++ b/packages/backend/src/core/entities/NoteEntityService.ts @@ -333,7 +333,6 @@ export class NoteEntityService implements OnModuleInit { visibleUserIds: note.visibility === 'specified' ? note.visibleUserIds : undefined, renoteCount: note.renoteCount, repliesCount: note.repliesCount, - reactionCount: Object.values(note.reactions).reduce((a, b) => a + b, 0), reactions: this.reactionService.convertLegacyReactions(note.reactions), reactionEmojis: this.customEmojiService.populateEmojis(reactionEmojiNames, host), reactionAndUserPairCache: opts.withReactionAndUserPairCache ? note.reactionAndUserPairCache : undefined, diff --git a/packages/backend/src/models/json-schema/note.ts b/packages/backend/src/models/json-schema/note.ts index 2641161c8ba2..bb4ccc7ee4db 100644 --- a/packages/backend/src/models/json-schema/note.ts +++ b/packages/backend/src/models/json-schema/note.ts @@ -223,10 +223,6 @@ export const packedNoteSchema = { }], }, }, - reactionCount: { - type: 'number', - optional: false, nullable: false, - }, renoteCount: { type: 'number', optional: false, nullable: false, diff --git a/packages/frontend/src/components/MkNote.vue b/packages/frontend/src/components/MkNote.vue index 7c596a6b51c4..0deb601baacf 100644 --- a/packages/frontend/src/components/MkNote.vue +++ b/packages/frontend/src/components/MkNote.vue @@ -93,7 +93,7 @@ SPDX-License-Identifier: AGPL-3.0-only {{ appearNote.channel.name }} - + @@ -101,7 +101,7 @@ SPDX-License-Identifier: AGPL-3.0-only