mirror of https://github.com/zlatinb/muwire
make sure .mwcollection files cannot be shared
parent
2262e93851
commit
5b6e6b8cc1
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue