Merge commit '9e0a3aaf08e7d4fc700f7f19d61f5f8fee346b6a' into glitch-soc/merge-upstream

This commit is contained in:
Claire committed 2026-06-10 18:52:58 +02:00
commit 89c2ac444f
111 files changed
+891 -238

No files matched your search

+5 -7
View File
@@ -93,7 +93,7 @@ const messages = defineMessages({
export const ensureComposeIsVisible = (getState) => {
if (!getState().getIn(['compose', 'mounted'])) {
browserHistory.push('/publish');
browserHistory.push('/publish', { focusTarget: false });
}
};
@@ -294,7 +294,10 @@ export function submitCompose(successCallback) {
message: statusId === null ? messages.published : messages.saved,
action: messages.open,
dismissAfter: 10000,
onClick: () => browserHistory.push(`/@${response.data.account.username}/${response.data.id}`),
onClick: () => browserHistory.push(
`/@${response.data.account.username}/${response.data.id}`,
{ focusTarget: 'detailed-status' }
),
}));
}).catch(function (error) {
dispatch(submitComposeFail(error));
@@ -341,11 +344,6 @@ export function uploadCompose(files) {
return;
}
if (getState().getIn(['compose', 'poll'])) {
dispatch(showAlert({ message: messages.uploadErrorPoll }));
return;
}
dispatch(uploadComposeRequest());
for (const [i, file] of Array.from(files).entries()) {
@@ -18,7 +18,7 @@ export async function importCustomEmoji(emojis: ApiCustomEmojiJSON[]) {
);
// If there's a mismatch, re-import all custom emojis.
if (existingEmojis.length < emojis.length) {
if (existingEmojis.length > 0 && existingEmojis.length < emojis.length) {
await clearCache('custom');
await loadCustomEmoji();
+1
View File
@@ -10,6 +10,7 @@ interface OpenModalPayload {
modalType: ModalType;
modalProps: ModalProps;
previousModalProps?: ModalProps;
ignoreFocus?: boolean;
}
export const openModal = createAction<OpenModalPayload>('MODAL_OPEN');