make sure .mwcollection files cannot be shared

pull/53/head
Zlatin Balevsky 2020-11-03 12:45:05 +00:00
parent 2262e93851
commit 5b6e6b8cc1
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,8 @@ class HasherService {
return
if (canonical.isFile() && fileManager.negativeTree.fileToNode.containsKey(canonical))
return
if (canonical.getName().endsWith(".mwcollection"))
return
if (canonical.getName().endsWith(".mwcomment")) {
if (canonical.length() <= Constants.MAX_COMMENT_LENGTH)
eventBus.publish(new SideCarFileEvent(file : canonical))