Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/humanReadablePane.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { icons, ns } from 'solid-ui'
import { Util } from 'rdflib'
import { marked } from 'marked'
import * as DOMPurify from 'dompurify'
import DOMPurify from 'dompurify';

const humanReadablePane = {
icon: icons.originalIconBase + 'tango/22-text-x-generic.png',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ exports[`getStatementsToAdd should return all required statements to add the giv
"termType": "NamedNode",
"value": "https://profile.example",
},
"object": BlankNode {
"classOrder": 6,
"isBlank": 1,
"isVar": 1,
"termType": "BlankNode",
"value": "bn_mock_app_id",
"object": NamedNode {
"classOrder": 5,
"termType": "NamedNode",
"value": "https://profile.example#mock_app_id",
},
"predicate": NamedNode {
"classOrder": 5,
Expand Down Expand Up @@ -42,12 +40,10 @@ exports[`getStatementsToAdd should return all required statements to add the giv
"termType": "NamedNode",
"value": "http://www.w3.org/ns/auth/acl#origin",
},
"subject": BlankNode {
"classOrder": 6,
"isBlank": 1,
"isVar": 1,
"termType": "BlankNode",
"value": "bn_mock_app_id",
"subject": NamedNode {
"classOrder": 5,
"termType": "NamedNode",
"value": "https://profile.example#mock_app_id",
},
},
Statement {
Expand All @@ -66,12 +62,10 @@ exports[`getStatementsToAdd should return all required statements to add the giv
"termType": "NamedNode",
"value": "http://www.w3.org/ns/auth/acl#mode",
},
"subject": BlankNode {
"classOrder": 6,
"isBlank": 1,
"isVar": 1,
"termType": "BlankNode",
"value": "bn_mock_app_id",
"subject": NamedNode {
"classOrder": 5,
"termType": "NamedNode",
"value": "https://profile.example#mock_app_id",
},
},
Statement {
Expand All @@ -90,12 +84,10 @@ exports[`getStatementsToAdd should return all required statements to add the giv
"termType": "NamedNode",
"value": "http://www.w3.org/ns/auth/acl#mode",
},
"subject": BlankNode {
"classOrder": 6,
"isBlank": 1,
"isVar": 1,
"termType": "BlankNode",
"value": "bn_mock_app_id",
"subject": NamedNode {
"classOrder": 5,
"termType": "NamedNode",
"value": "https://profile.example#mock_app_id",
},
},
]
Expand Down
2 changes: 1 addition & 1 deletion src/trustedApplications/trustedApplications.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function getStatementsToAdd (
person: NamedNode,
ns: Namespaces
): any {
const application = new BlankNode(`bn_${nodeName}`)
const application = new NamedNode(`${person.doc().uri}#${nodeName}`)
return [
st(person, ns.acl('trustedApp'), application, person.doc()),
st(application, ns.acl('origin'), origin, person.doc()),
Expand Down