Skip to content

fix(comments): fetch existing file comments on component mount - #66123

Merged
susnux merged 1 commit into
nextcloud:masterfrom
Jashan32:fix/comments-not-loaded-after-reload
Nov 6, 2026
Merged

susnux merged 1 commit into
nextcloud:masterfrom
Jashan32:fix/comments-not-loaded-after-reload

Conversation

@Jashan32

Copy link
Copy Markdown
Contributor

Assisted-by: Copilot:gpt-5.6

Summary

  • Comments appear immediately after being submitted.
  • After a browser reload, existing comments disappear from the UI.
  • The initial comments fetch was missing during component mounting.
  • Added this.getComments() to the mounted() lifecycle hook in CommentsApp.vue.
  • Corrected the debug logger reference, if included in the final diff.

Before:

Screencast.From.2026-11-01.00-41-32.mp4

After:

Screencast.From.2026-11-01.01-04-44.mp4

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Assisted-by: Copilot:gpt-5.6
Signed-off-by: jashan32 <jashandeep1849@gmail.com>
@Jashan32
Jashan32 requested a review from a team as a code owner October 31, 2026 19:35
@Jashan32
Jashan32 requested review from kristian-zendato, pringelmann and skjnldsv and removed request for a team October 31, 2026 19:35
@susnux susnux added this to the Nextcloud 36 milestone Nov 6, 2026
@susnux
susnux merged commit 800aaba into nextcloud:master Nov 6, 2026
88 of 96 checks passed
@welcome

welcome Bot commented Nov 6, 2026

Copy link
Copy Markdown

Thanks for your first pull request and welcome to the community! Feel free to keep them coming! If you are looking for issues to tackle then have a look at this selection: https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22

@susnux

susnux commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

/backport to stable35

@Jashan32
Jashan32 deleted the fix/comments-not-loaded-after-reload branch November 7, 2026 15:18
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: File comments disappear after page reload

3 participants