Merge pull request #529 from lbryio/515-app-thumbnails

added embed url to api return
This commit is contained in:
Bill Bittner 2018-07-17 11:10:39 -07:00 committed by GitHub
commit c4cc953d01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,9 +75,10 @@ const claimPublish = ({ body, files, headers, ip, originalUrl, user, tor }, res)
message: 'publish completed successfully',
data : {
name,
claimId: result.claim_id,
url : `${host}/${result.claim_id}/${name}`,
lbryTx : result,
claimId : result.claim_id,
url : `${host}/${result.claim_id}/${name}`,
embedUrl: `${host}/asset/${name}/${result.claim_id}`,
lbryTx : result,
},
});
// record the publish end time and send to google analytics