From e0557e0674611e45c034f863ff268699fa9a72bc Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Tue, 5 Jun 2018 13:22:32 -0400 Subject: [PATCH] Fix issue 1494 - uri and outpoint to API This will send the same unique URI for all claims, regardless of what URI the user navigated to. Also fix sending of outpoint (was passed as output, which was blank, previously) --- CHANGELOG.md | 1 + src/renderer/redux/actions/content.js | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 84485766f..a75a308d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,6 +40,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/). * Fix markdown render ([#1179](https://github.com/lbryio/lbry-app/issues/1179)) * Fix new lines not showing correctly after markdown changes ([#1504](https://github.com/lbryio/lbry-app/issues/1504)) * Fix claim ID being null when reporting a claim that was not previously download ([issue#1512](https://github.com/lbryio/lbry-app/issues/1512)) ([PR#1530](https://github.com/lbryio/lbry-app/pull/1530)) + * Fix URI and outpoint not being passed properly to API ([#1494](https://github.com/lbryio/lbry-app/issues/1494)) ## [0.21.3] - 2018-04-23 diff --git a/src/renderer/redux/actions/content.js b/src/renderer/redux/actions/content.js index 7278beb3d..f16d89f6f 100644 --- a/src/renderer/redux/actions/content.js +++ b/src/renderer/redux/actions/content.js @@ -225,7 +225,11 @@ export function doDownloadFile(uri, streamInfo) { return dispatch => { dispatch(doStartDownload(uri, streamInfo.outpoint)); - analytics.apiLogView(uri, streamInfo.output, streamInfo.claim_id); + analytics.apiLogView( + `${streamInfo.claim_name}#${streamInfo.claim_id}`, + streamInfo.outpoint, + streamInfo.claim_id + ); dispatch(doClaimEligiblePurchaseRewards()); };