]> cat aescling's git repositories - mastodon.git/commitdiff
Fix imports importing modules from vanilla flavour instead of glitch
authorThibaut Girka <thib@sitedethib.com>
Sat, 31 Aug 2019 10:53:10 +0000 (12:53 +0200)
committerThibaut Girka <thib@sitedethib.com>
Sat, 31 Aug 2019 16:23:24 +0000 (18:23 +0200)
app/javascript/flavours/glitch/actions/polls.js
app/javascript/flavours/glitch/components/poll.js
app/javascript/flavours/glitch/features/compose/containers/search_results_container.js
app/javascript/flavours/glitch/reducers/polls.js
app/javascript/flavours/glitch/reducers/suggestions.js

index 8e8b82df5d0eed2a52cb9487f919f2aae4db4454..ca94a095fecc002b386c30f62e5bdcbd1b10fe8c 100644 (file)
@@ -1,4 +1,4 @@
-import api from '../api';
+import api from 'flavours/glitch/util/api';
 import { importFetchedPoll } from './importer';
 
 export const POLL_VOTE_REQUEST = 'POLL_VOTE_REQUEST';
index 690f9ae5a076da1169b18314d9315adeb024357f..36c4b236c8fa7409e0ca53e3e6ed4b49646ba4ba 100644 (file)
@@ -4,11 +4,11 @@ import ImmutablePropTypes from 'react-immutable-proptypes';
 import ImmutablePureComponent from 'react-immutable-pure-component';
 import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
 import classNames from 'classnames';
-import { vote, fetchPoll } from 'mastodon/actions/polls';
-import Motion from 'mastodon/features/ui/util/optional_motion';
+import { vote, fetchPoll } from 'flavours/glitch/actions/polls';
+import Motion from 'flavours/glitch/util/optional_motion';
 import spring from 'react-motion/lib/spring';
 import escapeTextContentForBrowser from 'escape-html';
-import emojify from 'mastodon/features/emoji/emoji';
+import emojify from 'flavours/glitch/util/emoji';
 import RelativeTimestamp from './relative_timestamp';
 
 const messages = defineMessages({
index 1f714ff8342cb267b07c22a163d1bca0d8bfcf0c..5c2c1be232cfd5197c99ac5845be6e4cb3ef610b 100644 (file)
@@ -1,7 +1,7 @@
 import { connect } from 'react-redux';
 import SearchResults from '../components/search_results';
-import { fetchSuggestions, dismissSuggestion } from 'mastodon/actions/suggestions';
-import { expandSearch } from 'mastodon/actions/search';
+import { fetchSuggestions, dismissSuggestion } from 'flavours/glitch/actions/suggestions';
+import { expandSearch } from 'flavours/glitch/actions/search';
 
 const mapStateToProps = state => ({
   results: state.getIn(['search', 'results']),
index 9956cf83f602d9247d3d6a23bd684126b0d17773..595f340bc77150ceb999acfdbbabc724737effe2 100644 (file)
@@ -1,4 +1,4 @@
-import { POLLS_IMPORT } from 'mastodon/actions/importer';
+import { POLLS_IMPORT } from 'flavours/glitch/actions/importer';
 import { Map as ImmutableMap, fromJS } from 'immutable';
 
 const importPolls = (state, polls) => state.withMutations(map => polls.forEach(poll => map.set(poll.id, fromJS(poll))));
index 834be728f1e2e8bff298d9306c37f985bf8b603e..a08fedc25ca5084b89e0500b1da688b2cdcadc5d 100644 (file)
@@ -4,8 +4,8 @@ import {
   SUGGESTIONS_FETCH_FAIL,
   SUGGESTIONS_DISMISS,
 } from '../actions/suggestions';
-import { ACCOUNT_BLOCK_SUCCESS, ACCOUNT_MUTE_SUCCESS } from 'mastodon/actions/accounts';
-import { DOMAIN_BLOCK_SUCCESS } from 'mastodon/actions/domain_blocks';
+import { ACCOUNT_BLOCK_SUCCESS, ACCOUNT_MUTE_SUCCESS } from 'flavours/glitch/actions/accounts';
+import { DOMAIN_BLOCK_SUCCESS } from 'flavours/glitch/actions/domain_blocks';
 import { Map as ImmutableMap, List as ImmutableList, fromJS } from 'immutable';
 
 const initialState = ImmutableMap({