1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

All: Allow excluding certain keys during sync

This commit is contained in:
Laurent Cozic
2018-10-07 20:18:43 +01:00
parent 124a959c8d
commit d66fa87b2b
2 changed files with 17 additions and 2 deletions

View File

@ -42,6 +42,10 @@ class Resource extends BaseItem {
return resource.id + extension;
}
static serializeForSyncExcludedKeys() {
return ['fetch_status', 'fetch_error'];
}
static friendlyFilename(resource) {
let output = safeFilename(resource.title); // Make sure not to allow spaces or any special characters as it's not supported in HTTP headers
if (!output) output = resource.id;