add permanent_url to lbryFirst publish payload
This commit is contained in:
parent
c29123e815
commit
a1673ebfa9
2 changed files with 7 additions and 1 deletions
3
dist/bundle.es.js
vendored
3
dist/bundle.es.js
vendored
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue