Skip to content

Commit

Permalink
fix(frontend): 노트의 세부 옵션을 표시하는 더 보기! 버튼을 누를 수 없음
Browse files Browse the repository at this point in the history
  • Loading branch information
noridev committed Aug 30, 2024
1 parent 78d315d commit 72491fc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 19 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG_CHERRYPICK.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ Misskey의 전체 변경 사항을 확인하려면, [CHANGELOG.md#2024xx](CHANGE
# 릴리즈 노트
이 문서는 CherryPick의 변경 사항만 포함합니다.

## 4.x.x
출시일: unreleased<br>
기반 Misskey 버전: 2024.x.x<br>
Misskey의 전체 변경 사항을 확인하려면, [CHANGELOG.md#2024xx](CHANGELOG.md#2024xx) 문서를 참고하십시오.

### Client
- Fix: 노트의 세부 옵션을 표시하는 `더 보기!` 버튼을 누를 수 없음

---

## 4.11.0
출시일: 2024/8/28<br>
기반 Misskey 버전: 2024.8.0<br>
Expand Down
23 changes: 4 additions & 19 deletions packages/frontend/src/scripts/get-note-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -490,10 +490,10 @@ export function getNoteMenu(props: {
}]
: []
),*/
...(appearNote.userId !== $i.id || (isRenote && props.note.userId !== $i.id) ? [
...(appearNote.userId !== $i.id || props.note.userId !== $i.id ? [
{ type: 'divider' },
appearNote.userId !== $i.id ? getAbuseNoteMenu(appearNote, i18n.ts.reportAbuse) : undefined,
isRenote && props.note.userId !== $i.id ? getAbuseNoteMenu(props.note, i18n.ts.reportAbuseRenote) : undefined,
props.note.userId !== $i.id ? getAbuseNoteMenu(props.note, i18n.ts.reportAbuseRenote) : undefined,
]
: []
),
Expand Down Expand Up @@ -622,15 +622,8 @@ export function getQuoteMenu(props: {
note: Misskey.entities.Note,
mock?: boolean;
}) {
const isRenote = (
props.note.renote != null &&
props.note.text == null &&
props.note.fileIds &&
props.note.fileIds.length === 0 &&
props.note.poll == null
);
const menu: MenuItem[] = [];
const appearNote = isRenote ? props.note.renote as Misskey.entities.Note : props.note;
const appearNote = getAppearNote(props.note);

if (!appearNote.channel || appearNote.channel.allowRenoteToExternal) {
menu.push({
Expand Down Expand Up @@ -882,15 +875,7 @@ export async function getRenoteOnly(props: {
renoteButton: ShallowRef<HTMLElement | undefined>;
mock?: boolean;
}) {
const isRenote = (
props.note.renote != null &&
props.note.text == null &&
props.note.fileIds &&
props.note.fileIds.length === 0 &&
props.note.poll == null
);

const appearNote = isRenote ? props.note.renote as Misskey.entities.Note : props.note;
const appearNote = getAppearNote(props.note);

if (defaultStore.state.showRenoteConfirmPopup) {
const { canceled } = await os.confirm({
Expand Down

0 comments on commit 72491fc

Please sign in to comment.