Progress
This commit is contained in:
@@ -166,7 +166,8 @@ export function handleComposeSubmit(dispatch, getState, response, status) {
|
||||
}
|
||||
};
|
||||
|
||||
if (response.data.in_reply_to_id === null && response.data.visibility === 'public') {
|
||||
if (response.data.visibility === 'public') {
|
||||
// console.log("response.data.in_reply_to_id:", response.data.in_reply_to_id)
|
||||
insertIfOnline('home');
|
||||
insertIfOnline('community');
|
||||
insertIfOnline('public');
|
||||
|
||||
@@ -112,8 +112,6 @@ export const submitListEditor = (shouldReset) => (dispatch, getState) => {
|
||||
const listId = getState().getIn(['listEditor', 'listId']);
|
||||
const title = getState().getIn(['listEditor', 'title']);
|
||||
|
||||
console.log("submitListEditor:", title)
|
||||
|
||||
if (listId === null) {
|
||||
dispatch(createList(title, shouldReset));
|
||||
} else {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import api from '../api';
|
||||
import { fetchRelationships } from './accounts';
|
||||
import { fetchGroupsSuccess, fetchGroupRelationships } from './groups'
|
||||
import { importFetchedAccounts, importFetchedStatuses } from './importer';
|
||||
|
||||
export const SEARCH_CHANGE = 'SEARCH_CHANGE';
|
||||
@@ -48,11 +49,10 @@ export function submitSearch() {
|
||||
dispatch(importFetchedStatuses(response.data.statuses));
|
||||
}
|
||||
|
||||
console.log("response.data.", response.data)
|
||||
|
||||
// if (response.data.groups) {
|
||||
// dispatch(importFetchedStatuses(response.data.statuses));
|
||||
// }
|
||||
if (response.data.groups) {
|
||||
dispatch(fetchGroupsSuccess(response.data.groups))
|
||||
dispatch(fetchGroupRelationships(response.data.groups.map(item => item.id)))
|
||||
}
|
||||
|
||||
dispatch(fetchSearchSuccess(response.data));
|
||||
}).catch(error => {
|
||||
|
||||
Reference in New Issue
Block a user