1
0
Fork 0
forked from gitea/nas

Add emoji reaction history list page

This commit is contained in:
KMY 2023-03-19 12:21:45 +09:00
parent 83f037ff76
commit d73238d9f6
10 changed files with 264 additions and 2 deletions

View file

@ -258,7 +258,17 @@ class Status extends ImmutablePureComponent {
handleEmojiReact = (status, emoji) => {
const { dispatch } = this.props;
dispatch(emojiReact(status, emoji));
const { signedIn } = this.context.identity;
if (signedIn) {
dispatch(emojiReact(status, emoji));
} else {
dispatch(openModal('INTERACTION', {
type: 'favourite',
accountId: status.getIn(['account', 'id']),
url: status.get('url'),
}));
}
};
handleUnEmojiReact = (status, emoji) => {