Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Allow track owner to share premium content to socials C-2424 #3177

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nicoback2
Copy link
Contributor

Description

Dragons

Is there anything the reviewer should be on the lookout for? Are there any dangerous changes?

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide repro instructions & any configuration.

How will this change be monitored?

For features that are critical or could fail silently please describe the monitoring/alerting being added.

Feature Flags

Are all new features properly feature flagged? Describe added feature flags.

@nicoback2 nicoback2 requested review from sddioulde, a team and amendelsohn and removed request for a team April 5, 2023 20:59
@nicoback2 nicoback2 requested review from a team and removed request for amendelsohn April 5, 2023 21:00
@@ -291,12 +300,40 @@ export const useShareToStory = ({
dispatch(setCancel(() => cancelStory(platform)))
toggleProgressDrawer(true, platform)

const encodedTrackId = encodeHashId(content.track.track_id)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

basically copied the logic from the Audio component for getting the right query params for the stream track URL.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! Would it make sense to break this out into a helper function that both places use?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm yeah i think i can break out some of it

@@ -291,12 +300,40 @@ export const useShareToStory = ({
dispatch(setCancel(() => cancelStory(platform)))
toggleProgressDrawer(true, platform)

const encodedTrackId = encodeHashId(content.track.track_id)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! Would it make sense to break this out into a helper function that both places use?

Copy link
Contributor

@sddioulde sddioulde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me!

@AudiusProject AudiusProject deleted a comment from linear bot Sep 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants