mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-22 20:33:08 +02:00
fix: keep alt text of file if present
This commit is contained in:
parent
8b90c6c045
commit
8f6dfa611e
1 changed files with 4 additions and 0 deletions
|
@ -419,6 +419,10 @@ export class ImportNotesProcessorService {
|
|||
const name = file.url.substring(slashdex + 1);
|
||||
const exists = await this.driveFilesRepository.findOneBy({ name: name, userId: user.id });
|
||||
if (exists) {
|
||||
if (file.name) {
|
||||
this.driveService.updateFile(exists, { comment: file.name }, user);
|
||||
}
|
||||
|
||||
files.push(exists);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue