Skip to content

fix: open file previews with the viewer library - #3074

Merged
skjnldsv merged 2 commits into
masterfrom
fix/viewer-library
Nov 2, 2026
Merged

skjnldsv merged 2 commits into
masterfrom
fix/viewer-library

Conversation

@skjnldsv

Copy link
Copy Markdown
Member

Activity opened file previews through OCA.Viewer, which is gone in Nextcloud 36. It now uses @nextcloud/viewer: canView() decides whether the viewer shows the file, and open() gets that file alone. Anything the viewer doesn't show follows the preview's link as before.

Fixes #2917

Tried on master: a picture's preview in the stream opens in the viewer.

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

@codecov

codecov Bot commented Oct 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@skjnldsv
skjnldsv enabled auto-merge November 2, 2026 19:22
OCA.Viewer is gone in Nextcloud 36. Ask the viewer library whether it
shows the file, and open it alone rather than with its folder.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com>
Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com>
@skjnldsv
skjnldsv merged commit 0c62f1b into master Nov 2, 2026
52 checks passed
@skjnldsv
skjnldsv deleted the fix/viewer-library branch November 2, 2026 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate off the OCA.Viewer global before Nextcloud 36

2 participants