contacts-pane 2.6.4-2a10406e → 2.6.4-3ff0df2c
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/webidControl.js +3 -3
package/package.json
CHANGED
package/webidControl.js
CHANGED
|
@@ -51,14 +51,14 @@ export async function addWebIDToContacts (person, webid, urlType, kb) {
|
|
|
51
51
|
$rdf.st(vcardURLThing, ns.rdf('type'), urlType, person.doc()),
|
|
52
52
|
$rdf.st(vcardURLThing, ns.vcard('value'), webid, person.doc())
|
|
53
53
|
]
|
|
54
|
-
// insert
|
|
55
|
-
// replace person with
|
|
54
|
+
// insert WebID in groups
|
|
55
|
+
// replace person with WebID in vcard:hasMember (WebID may already exist)
|
|
56
56
|
// insert owl:sameAs
|
|
57
57
|
const groups = kb.each(null, ns.vcard('hasMember'), person)
|
|
58
58
|
const deletables = []
|
|
59
59
|
groups.forEach(group => {
|
|
60
60
|
deletables.push($rdf.st(group, ns.vcard('hasMember'), person, group.doc()))
|
|
61
|
-
insertables.push($rdf.st(group, ns.vcard('hasMember'), kb.sym(webid), group.doc())) //
|
|
61
|
+
insertables.push($rdf.st(group, ns.vcard('hasMember'), kb.sym(webid), group.doc())) // May exist; do we need to check?
|
|
62
62
|
insertables.push($rdf.st(person, ns.owl('sameAs'), kb.sym(webid), group.doc()))
|
|
63
63
|
})
|
|
64
64
|
try {
|