-
Notifications
You must be signed in to change notification settings - Fork 91
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
[stable27] Refactor attachment loading #5087
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mejo-
force-pushed
the
backport/5042/stable27
branch
2 times, most recently
from
December 5, 2023 16:11
6c04c15
to
a37baa0
Compare
/compile |
mejo-
force-pushed
the
backport/5042/stable27
branch
from
December 5, 2023 16:46
9e0906b
to
c130a55
Compare
/compile |
Signed-off-by: Jonas <jonas@freesources.org>
This format was only used from 03.01.2022 to 23.05.2022. Signed-off-by: Jonas <jonas@freesources.org>
…ment Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
`AttachmentResolver` only returns one candidate now. Signed-off-by: Jonas <jonas@freesources.org>
* Only open images from native attachments list * Only open images, non-image attachments are not supported anyway * Fix watcher for `startIndex` * Don't set computed property `currentImage` * Show error if image cannot be found in attachments Signed-off-by: Jonas <jonas@freesources.org>
* `getMetadata()` from AttachmentResolver class. * `isSupportedImage` logic from ImageView node. Was never used. * `hasPreview=true` logic from AttachmentResolver class. Signed-off-by: Jonas <jonas@freesources.org>
Required for AttachmentResolver to fetch list of attachments for the document. Signed-off-by: Jonas <jonas@freesources.org>
For all read-only attachments API endpoints, add support to authorize with user session or share token when no document session is available. Allows to get the attachments list and attachment files from MarkdownContentEditor.vue without a document session. Signed-off-by: Jonas <jonas@freesources.org>
We don't remember a legitimate reason why they would end up in a text document. Probably something that predate the attachments directory era. Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
Also don't set any davPath at all in public share. We probably don't have DAV access there anyway. Signed-off-by: Jonas <jonas@freesources.org>
…ctoring Signed-off-by: Jonas <jonas@freesources.org>
Instead of just opening native image attachments, query the HTML document to get all loaded attachments (regardless whether native, via direct URL or via DAV) and list them. Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
Required for the file attachment download test to succeed. Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
mejo-
force-pushed
the
backport/5042/stable27
branch
from
December 5, 2023 18:44
86543e7
to
70b5a89
Compare
/compile |
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
max-nextcloud
approved these changes
Dec 6, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Manual backport of #5042