sforkowany z mirror/soapbox
Set scheduled post date to 10 minutes after current time
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>takahe^2^2
rodzic
c7e140bf3f
commit
0001ea47df
|
@ -455,7 +455,7 @@ export default function compose(state = initialState, action: AnyAction) {
|
||||||
case COMPOSE_POLL_REMOVE:
|
case COMPOSE_POLL_REMOVE:
|
||||||
return updateCompose(state, action.id, compose => compose.set('poll', null));
|
return updateCompose(state, action.id, compose => compose.set('poll', null));
|
||||||
case COMPOSE_SCHEDULE_ADD:
|
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:
|
case COMPOSE_SCHEDULE_SET:
|
||||||
return updateCompose(state, action.id, compose => compose.set('schedule', action.date));
|
return updateCompose(state, action.id, compose => compose.set('schedule', action.date));
|
||||||
case COMPOSE_SCHEDULE_REMOVE:
|
case COMPOSE_SCHEDULE_REMOVE:
|
||||||
|
|
Ładowanie…
Reference in New Issue