From b0e4823d624d72da9128250594d02d969812158a Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Tue, 20 Mar 2018 09:20:50 -0700 Subject: [PATCH 1/3] add youtube rewards --- src/renderer/rewards.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/renderer/rewards.js b/src/renderer/rewards.js index 84dde2477..1436b4bf2 100644 --- a/src/renderer/rewards.js +++ b/src/renderer/rewards.js @@ -27,6 +27,7 @@ rewards.TYPE_MANY_DOWNLOADS = 'many_downloads'; rewards.TYPE_FIRST_PUBLISH = 'first_publish'; rewards.TYPE_FEATURED_DOWNLOAD = 'featured_download'; rewards.TYPE_REFERRAL = 'referral'; +rewards.YOUTUBE_CREATOR = 'youtube_creator'; rewards.SORT_ORDER = [ rewards.TYPE_NEW_USER, rewards.TYPE_CONFIRM_EMAIL, @@ -37,6 +38,7 @@ rewards.SORT_ORDER = [ rewards.TYPE_MANY_DOWNLOADS, rewards.TYPE_REFERRAL, rewards.TYPE_NEW_DEVELOPER, + rewards.YOUTUBE_CREATOR ]; rewards.claimReward = type => { -- 2.45.3 From c12f4fd0b82b02bce656227f0802fa8514503f6f Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Tue, 20 Mar 2018 13:10:50 -0400 Subject: [PATCH 2/3] add snackbar message --- src/renderer/rewards.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/renderer/rewards.js b/src/renderer/rewards.js index 1436b4bf2..5ab76455d 100644 --- a/src/renderer/rewards.js +++ b/src/renderer/rewards.js @@ -13,6 +13,7 @@ function rewardMessage(type, amount) { first_publish: __('You earned %s LBC for making your first publication.', amount), featured_download: __('You earned %s LBC for watching a featured download.', amount), referral: __('You earned %s LBC for referring someone.', amount), + youtube_creator: __('You earned %s LBC for syncing your YouTube channel.', amount), }[type]; } -- 2.45.3 From eb22482ee932d64756ff5a23307022511f996729 Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Tue, 20 Mar 2018 16:13:03 -0400 Subject: [PATCH 3/3] update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b1eae8352..4632fbecd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/). * Notifications when the channel a user subscribes to uploads new content ([#1066](https://github.com/lbryio/lbry-app/pull/1066)) * Codacy support for Github contributions ([#1059](https://github.com/lbryio/lbry-app/pull/1059)) * App category for Linux ([#877](https://github.com/lbryio/lbry-app/pull/877)) + * Add YouTube Sync reward ([1147](https://github.com/lbryio/lbry-app/pull/1147)) ### Changed * Improved privacy by allowing users to turn off the file view counter and better understand privacy settings ([#1074](https://github.com/lbryio/lbry-app/pull/1074)) -- 2.45.3