Skip to content

feat(api): describe recommended files as WebDAV does - #1206

Merged
skjnldsv merged 1 commit into
masterfrom
feat/api-node-attributes
Oct 29, 2026
Merged

skjnldsv merged 1 commit into
masterfrom
feat/api-node-attributes

Conversation

@skjnldsv

Copy link
Copy Markdown
Member

The recommendations API only gave a file's id, name, folder and mime. A client that wants to open one in the viewer has to build an @nextcloud/files node from that, and had to guess the permissions and download restrictions. It now also returns the etag, mtime, size, permissions, owner and share attributes, from the same sources as their WebDAV props.

shareAttributes is what tells the viewer that a share forbids downloading. The frontend will use these once #1205 is in.

👾 This pull request was assisted by Claude Code, commits carry an Assisted-by trailer.

Add the etag, mtime, size, permissions, owner and share attributes, so
a client can build the same node as from a PROPFIND.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com>
@skjnldsv
skjnldsv merged commit 774b238 into master Oct 29, 2026
40 checks passed
@skjnldsv
skjnldsv deleted the feat/api-node-attributes branch October 29, 2026 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants