Browse Source

fixed 已读未读标记优化

pull/313/head
“xxq250” 3 years ago
parent
commit
b949ee260d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/mark_files_controller.rb

+ 1
- 1
app/controllers/mark_files_controller.rb View File

@@ -4,7 +4,7 @@ class MarkFilesController < ApplicationController
before_action :load_pull_request before_action :load_pull_request


def index def index
@files_result = Gitea::PullRequest::FilesService.call(@owner.login, @project.identifier, @pull_request.gitea_number, current_user&.gitea_token)
@files_result = Gitea::PullRequest::FilesService.call(@owner.login, @project.identifier, @pull_request.gitea_number, current_user&.gitea_token, { "only-file-name": true })
@mark_files = MarkFile.where(pull_request_id: @pull_request.id) @mark_files = MarkFile.where(pull_request_id: @pull_request.id)
end end




Loading…
Cancel
Save