Skip to content

Commit 568b58a

Browse files
committed
fix: Send Parent Notifications on Root
Notifications on the parent container are now sent when the parent is root.
1 parent a6067e3 commit 568b58a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/handlers/notify.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ const ALLOWED_RDF_MIME_TYPES = [
1414
function getParent (path) {
1515
if (path === '' || path === '/') return
1616
const parent = libPath.dirname(path)
17-
if (parent === '/') return
18-
return `${parent}/`
17+
return parent === '/' ? '/' : `${parent}/`
1918
}
2019

2120
function getActivity (method) {

0 commit comments

Comments
 (0)