Skip to content

Commit

Permalink
fix(ruby): replace url to public server for forgotten files (Fix Bug …
Browse files Browse the repository at this point in the history
…69930)
  • Loading branch information
ZEROM22 authored and LinneyS committed Sep 11, 2024
1 parent c23e9b6 commit 09344f6
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ def forgotten
files_list = TrackHelper.command_request('getForgottenList', '')
(files_list['keys']).each do |key|
file = TrackHelper.command_request('getForgotten', key)
public_uri = HomeController.config_manager.document_server_public_uri.to_s
private_uri = HomeController.config_manager.document_server_private_uri.to_s
if file['url'].include?(private_uri)
file['url'].gsub!(private_uri, public_uri)
end
file['type'] = FileUtility.get_file_type(file['url'])
@files.push(file)
end
Expand Down

0 comments on commit 09344f6

Please sign in to comment.