Skip to content

Commit

Permalink
Fix: #236 ログインしていない状態で投稿詳細画面でスタンプを押そうとすると画面が操作不能になる (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmycode authored Nov 9, 2023
1 parent e739031 commit c35e587
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions app/javascript/mastodon/features/status/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,13 @@ class Status extends ImmutablePureComponent {
if (signedIn) {
dispatch(emojiReact(status, emoji));
} else {
dispatch(openModal('INTERACTION', {
type: 'favourite',
accountId: status.getIn(['account', 'id']),
url: status.get('url'),
dispatch(openModal({
modalType: 'INTERACTION',
modalProps: {
type: 'favourite',
accountId: status.getIn(['account', 'id']),
url: status.get('uri'),
},
}));
}
};
Expand Down

0 comments on commit c35e587

Please sign in to comment.