Merge pull request #2768 from mattermost/gh-2759-fix-images

GH-2759 - fix path to file api
This commit is contained in:
Scott Bishel 2022-04-13 08:43:29 -06:00 committed by GitHub
commit fa15c291b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -557,7 +557,7 @@ class OctoClient {
}
async getFileAsDataUrl(boardId: string, fileId: string): Promise<string> {
let path = '/files/teams/' + this.teamId + '/' + boardId + '/' + fileId
let path = '/api/v1/files/teams/' + this.teamId + '/' + boardId + '/' + fileId
const readToken = Utils.getReadToken()
if (readToken) {
path += `?read_token=${readToken}`