From 0001ea47dff0a5318bdc088fa2239f694838864b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sun, 1 Jan 2023 23:50:55 +0100 Subject: [PATCH] Set scheduled post date to 10 minutes after current time MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- app/soapbox/reducers/compose.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/soapbox/reducers/compose.ts b/app/soapbox/reducers/compose.ts index d321ec05e1..18a1fdac23 100644 --- a/app/soapbox/reducers/compose.ts +++ b/app/soapbox/reducers/compose.ts @@ -455,7 +455,7 @@ export default function compose(state = initialState, action: AnyAction) { case COMPOSE_POLL_REMOVE: return updateCompose(state, action.id, compose => compose.set('poll', null)); case COMPOSE_SCHEDULE_ADD: - return updateCompose(state, action.id, compose => compose.set('schedule', new Date())); + return updateCompose(state, action.id, compose => compose.set('schedule', new Date(Date.now() + 10 * 60 * 1000))); case COMPOSE_SCHEDULE_SET: return updateCompose(state, action.id, compose => compose.set('schedule', action.date)); case COMPOSE_SCHEDULE_REMOVE: