~cytrogen/masto-fe

e83af75245900df4eefa501a5c8985c329be7f89 — tobi 1 year, 4 months ago 3ab0eac
[bugfix] Fix spoiler not being sent
1 files changed, 1 insertions(+), 2 deletions(-)

M app/javascript/flavours/glitch/actions/compose.js
M app/javascript/flavours/glitch/actions/compose.js => app/javascript/flavours/glitch/actions/compose.js +1 -2
@@ 171,8 171,7 @@ export function submitCompose(routerHistory) {
    let status     = getState().getIn(['compose', 'text'], '');
    const media    = getState().getIn(['compose', 'media_attachments']);
    const statusId = getState().getIn(['compose', 'id'], null);
    const spoilers = getState().getIn(['compose', 'spoiler']) || getState().getIn(['local_settings', 'always_show_spoilers_field']);
    let spoilerText = spoilers ? getState().getIn(['compose', 'spoiler_text'], '') : '';
    let spoilerText = getState().getIn(['compose', 'spoiler_text'], '');

    if ((!status || !status.length) && media.size === 0) {
      return;