diff --git a/package.json b/package.json index 246d2a0ce8..d64b476527 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "misskey", - "version": "2024.5.0-beta1-mattyatea5", + "version": "2024.5.0-beta1-mattyatea6", "codename": "nasubi", "repository": { "type": "git", diff --git a/packages/backend/migration/1715787239605-loginbonus.js b/packages/backend/migration/1715787239605-loginbonus.js deleted file mode 100644 index b12fa3c76c..0000000000 --- a/packages/backend/migration/1715787239605-loginbonus.js +++ /dev/null @@ -1,11 +0,0 @@ -import {Column} from "typeorm"; - -export class Loginbonus1715787239605 { - name = 'Loginbonus1715787239605' - - async up(queryRunner) { - await queryRunner.query(`ALTER TABLE "user_profile" DROP COLUMN "getPoints"`); } - - async down(queryRunner) { - await queryRunner.query(`ALTER TABLE "user_profile" ADD "getPoints" integer NOT NULL DEFAULT '0'`); } -} diff --git a/packages/frontend/src/components/MkEmojiEditDialog.vue b/packages/frontend/src/components/MkEmojiEditDialog.vue index c185683b51..2cd685d01a 100644 --- a/packages/frontend/src/components/MkEmojiEditDialog.vue +++ b/packages/frontend/src/components/MkEmojiEditDialog.vue @@ -75,7 +75,7 @@ SPDX-License-Identifier: AGPL-3.0-only {{ i18n.ts.isNotifyIsHome }} -
+

diff --git a/packages/frontend/src/scripts/get-user-menu.ts b/packages/frontend/src/scripts/get-user-menu.ts index 3e031d232f..c8bf8af255 100644 --- a/packages/frontend/src/scripts/get-user-menu.ts +++ b/packages/frontend/src/scripts/get-user-menu.ts @@ -81,6 +81,18 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: IRouter }); } + async function toggleBlockAndMute() { + if (user.isBlocking && user.isMuted || !user.isBlocking && !user.isMuted) { + toggleMute(); + toggleBlock(); + } + if (user.isMuted && !user.isBlocking) { + toggleMute(); + } else if (!user.isMuted && user.isBlocking) { + toggleBlock(); + } + } + async function toggleWithReplies() { os.apiWithDialog('following/update', { userId: user.id, @@ -327,6 +339,10 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: IRouter icon: 'ti ti-ban', text: user.isBlocking ? i18n.ts.unblock : i18n.ts.block, action: toggleBlock, + }, { + icon: 'ti ti-user-off', + text: user.isBlocking || user.isMuted ? i18n.ts.unblock + '&' + i18n.ts.unmute : i18n.ts.block + '&' + i18n.ts.mute, + action: toggleBlockAndMute, }]); if (user.isFollowed) {