diff --git a/dist/bundle.es.js b/dist/bundle.es.js index 9a3f93b..17e89d9 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -4728,6 +4728,9 @@ const doPublish = (success, fail) => (dispatch, getState) => { return success(response); } + // $FlowFixMe + publishPayload.permanent_url = response.outputs[0].permanent_url; + return lbryFirstProxy.upload(publishPayload).then(() => { // Return original publish response so app treats it like a normal publish return success(response); diff --git a/src/redux/actions/publish.js b/src/redux/actions/publish.js index 40af286..8c52098 100644 --- a/src/redux/actions/publish.js +++ b/src/redux/actions/publish.js @@ -357,11 +357,14 @@ export const doPublish = (success: Function, fail: Function) => ( // The sdk will figure it out if (filePath) publishPayload.file_path = filePath; - return Lbry.publish(publishPayload).then(response => { + return Lbry.publish(publishPayload).then((response: PublishResponse) => { if (!useLBRYUploader) { return success(response); } + // $FlowFixMe + publishPayload.permanent_url = response.outputs[0].permanent_url; + return LbryFirst.upload(publishPayload) .then(() => { // Return original publish response so app treats it like a normal publish