parent
e0eb39d41b
commit
74d40c7d8f
|
@ -7,7 +7,7 @@ import { tagHistory } from 'mastodon/settings';
|
||||||
import resizeImage from 'mastodon/utils/resize_image';
|
import resizeImage from 'mastodon/utils/resize_image';
|
||||||
import { showAlert, showAlertForError } from './alerts';
|
import { showAlert, showAlertForError } from './alerts';
|
||||||
import { useEmoji } from './emojis';
|
import { useEmoji } from './emojis';
|
||||||
import { importFetchedAccounts } from './importer';
|
import { importFetchedAccounts, importFetchedStatus } from './importer';
|
||||||
import { openModal } from './modal';
|
import { openModal } from './modal';
|
||||||
import { updateTimeline } from './timelines';
|
import { updateTimeline } from './timelines';
|
||||||
|
|
||||||
|
@ -194,6 +194,10 @@ export function submitCompose(routerHistory) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (statusId) {
|
||||||
|
dispatch(importFetchedStatus({ ...response.data }));
|
||||||
|
}
|
||||||
|
|
||||||
if (statusId === null && response.data.visibility !== 'direct') {
|
if (statusId === null && response.data.visibility !== 'direct') {
|
||||||
insertIfOnline('home');
|
insertIfOnline('home');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue