logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: c9d04f1c39dc95a54d058eaed794c2fcb9e62b6b
parent: 9e15eeec63b36f147700303961ad5ef207b81986
Author: Yamagishi Kazutoshi <ykzts@desire.sh>
Date:   Sat,  9 Sep 2017 20:42:48 +0900

Fix second report (regression from 3b81baaaaf51ff1c70fb1f865eef07fdb33a5950) (#4863)


Diffstat:

Mapp/javascript/mastodon/reducers/reports.js2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/javascript/mastodon/reducers/reports.js b/app/javascript/mastodon/reducers/reports.js @@ -28,7 +28,7 @@ export default function reports(state = initialState, action) { if (state.getIn(['new', 'account_id']) !== action.account.get('id')) { map.setIn(['new', 'status_ids'], action.status ? ImmutableSet([action.status.getIn(['reblog', 'id'], action.status.get('id'))]) : ImmutableSet()); map.setIn(['new', 'comment'], ''); - } else { + } else if (action.status) { map.updateIn(['new', 'status_ids'], ImmutableSet(), set => set.add(action.status.getIn(['reblog', 'id'], action.status.get('id')))); } });