-
Notifications
You must be signed in to change notification settings - Fork 6
Add share link entry #5
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
Conversation
5115c77 to
05568aa
Compare
Signed-off-by: John Molakvoæ <[email protected]>
05568aa to
32ae1db
Compare
julien-nc
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good. Too bad we can't try it because ExternalShareAction is not allowed inside the Actions component.
One question though: Is the DownloadLimitAction displayed even if the limit is disabled?
| @@ -1,3 +1,6 @@ | |||
| module.exports = { | |||
| globals: { | |||
| appName: true, | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After checking the docs https://eslint.org/docs/user-guide/configuring/language-options#using-configuration-files-1 shouldn't this be set to 'readonly'?
|
Signed-off-by: John Molakvoæ <[email protected]>
| $count = $this->config->getAppValue(Application::APP_ID, 'download_count_' . $token, 0) + 1; | ||
| $this->config->setAppValue(Application::APP_ID, 'download_count_' . $token, $count); | ||
| // Increment this download event | ||
| $downloads = $shareLimit->getDownloads() + 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
potential concurrency concern, I've raised it #8 as it doesn't look that critical and rather unlikely to be triggered by a regular user
PVince81
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 code looks fine to me so far
I was not able to test due to dependencies.
Also see comment + ticket about potential concurrency concern.
|
I guess we shouldn't merge until this actually works after resolving the related PRs |
|
@PVince81 @szaimen Even if my solution probably won't be used, it allows to test this PR. Just use server's The current problem with the |
Can confirm that it shows up with your branch but that has its own problems... So probably we need to decide first which attempt to use and then test it and fix the issues there... |
Add limit message on public page
Signed-off-by: John Molakvoæ <[email protected]>

Closes nextcloud/server#28376