Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Fix reporting from profile (mastodon#17632)
Browse files Browse the repository at this point in the history
* Fix reporting from profile

* Clean up dead code
  • Loading branch information
ClearlyClaire authored Feb 23, 2022
1 parent a9a43de commit b7cf11d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 67 deletions.
2 changes: 1 addition & 1 deletion app/javascript/mastodon/actions/reports.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const REPORT_SUBMIT_FAIL = 'REPORT_SUBMIT_FAIL';
export const initReport = (account, status) => dispatch =>
dispatch(openModal('REPORT', {
accountId: account.get('id'),
statusId: status.get('id'),
statusId: status?.get('id'),
}));

export const submitReport = (params, onSuccess, onFail) => (dispatch, getState) => {
Expand Down
2 changes: 0 additions & 2 deletions app/javascript/mastodon/reducers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import status_lists from './status_lists';
import mutes from './mutes';
import blocks from './blocks';
import boosts from './boosts';
// import reports from './reports';
import rules from './rules';
import contexts from './contexts';
import compose from './compose';
Expand Down Expand Up @@ -62,7 +61,6 @@ const reducers = {
mutes,
blocks,
boosts,
// reports,
rules,
contexts,
compose,
Expand Down
64 changes: 0 additions & 64 deletions app/javascript/mastodon/reducers/reports.js

This file was deleted.

0 comments on commit b7cf11d

Please sign in to comment.