diff --git a/core/src/main/groovy/com/muwire/core/files/HasherService.groovy b/core/src/main/groovy/com/muwire/core/files/HasherService.groovy index fbdf3598..9abc8b72 100644 --- a/core/src/main/groovy/com/muwire/core/files/HasherService.groovy +++ b/core/src/main/groovy/com/muwire/core/files/HasherService.groovy @@ -34,7 +34,7 @@ class HasherService { return if (fileManager.fileToSharedFile.containsKey(canonical)) return - if (canonical.getName().endsWith(".mwcomment") && canonical.length() < Constants.MAX_COMMENT_LENGTH) + if (canonical.getName().endsWith(".mwcomment") && canonical.length() <= Constants.MAX_COMMENT_LENGTH) eventBus.publish(new SideCarFileEvent(file : canonical)) else if (hashed.add(canonical)) executor.execute( { -> process(canonical) } as Runnable)