Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reimplement shared links handler #38

Merged
merged 1 commit into from
Oct 21, 2022
Merged

Conversation

bmquinn
Copy link
Contributor

@bmquinn bmquinn commented Oct 21, 2022

Modifies the /shared-links/{id} handler to parse a shared links document and get the target work document regardless of visibility/published status.

document and get the target work document regardless of
visibility/published status.
@bmquinn bmquinn requested review from kdid and mbklein October 21, 2022 19:41
};

const linkExpired = (expirationDate) => {
return !isValid(expirationDate) || expirationDate <= new Date();
Copy link
Contributor

Choose a reason for hiding this comment

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

It occurs to me that the request will be denied if it hits this line right at the last millisecond that the link is valid due to the <=. I'm not inclined to change it, though. We'll deal with any complaints that come in. 😄

@bmquinn bmquinn merged commit 8aeed3e into deploy/staging Oct 21, 2022
@bmquinn bmquinn deleted the 3251-shared-links branch October 21, 2022 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants