Skip to content

Commit

Permalink
release: v2024.9.0-kakurega.1.39.2 (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
hideki0403 authored Oct 1, 2024
2 parents 0d7bf7f + ba28bc6 commit 91466b8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG_KAKUREGA.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 1.39.2
Release: 2024/10/01
Base: 2024.9.0

### 修正
- ユーザーに関連するメニューを開けない問題を修正

## 1.39.1
Release: 2024/08/18
Base: 2024.8.0
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "misskey",
"version": "2024.9.0-kakurega.1.39.1",
"version": "2024.9.0-kakurega.1.39.2",
"codename": "nasubi",
"repository": {
"type": "git",
Expand Down
10 changes: 5 additions & 5 deletions packages/frontend/src/scripts/get-user-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
import { toUnicode } from 'punycode';
import { defineAsyncComponent, ref, watch } from 'vue';
import * as Misskey from 'misskey-js';
import { host, url } from '@@/js/config.js';
import type { MenuItem } from '@/types/menu.js';
import { i18n } from '@/i18n.js';
import { copyToClipboard } from '@/scripts/copy-to-clipboard.js';
import { host, url } from '@@/js/config.js';
import * as os from '@/os.js';
import { misskeyApi } from '@/scripts/misskey-api.js';
import { defaultStore, userActions } from '@/store.js';
Expand All @@ -18,7 +19,6 @@ import { IRouter } from '@/nirax.js';
import { antennasCache, rolesCache, userListsCache } from '@/cache.js';
import { mainRouter } from '@/router/main.js';
import { genEmbedCode } from '@/scripts/get-embed-code.js';
import type { MenuItem } from '@/types/menu.js';

type PeriodType = {
key: string;
Expand Down Expand Up @@ -303,7 +303,7 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: IRouter
listId: list.id,
userId: user.id,
}).then(() => {
list.userIds?.splice(list.userIds?.indexOf(user.id), 1);
list.userIds?.splice(list.userIds.indexOf(user.id), 1);
});
}
}));
Expand Down Expand Up @@ -407,11 +407,11 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: IRouter
});

if (!user.isBlocking || !user.isMuted) {
menu = menu.concat([{
menuItems.push({
icon: 'ti ti-hammer',
text: `${i18n.ts.mute}&${i18n.ts.block}`,
action: muteAndBlock,
}]);
});
}

if (user.isFollowed) {
Expand Down

0 comments on commit 91466b8

Please sign in to comment.