diff --git a/src/demo/App.js b/src/demo/App.js index 1689fc50..93e2ebe9 100644 --- a/src/demo/App.js +++ b/src/demo/App.js @@ -96,7 +96,8 @@ const App = () => { // Discover the inbox url from the resource, using ldp:inbox predicate const inboxUrl = await discoverInbox(userWebID); // The actor in this case is the current application, so we can use the current URL - const actor = window.location.href; + // Removing actor temporarily until we figure out how to link applications + // const actor = window.location.href; if (!inboxUrl) { throw new Error('Inbox not found'); @@ -106,7 +107,7 @@ const App = () => { { title: 'Notification Example', summary: 'This is a basic solid notification example.', - actor + actor: 'https://solidsdk.inrupt.net/profile/card#me' }, inboxUrl, NotificationTypes.ANNOUNCE diff --git a/src/lib/classes/notification.js b/src/lib/classes/notification.js index 9d80e179..7cbc37d5 100644 --- a/src/lib/classes/notification.js +++ b/src/lib/classes/notification.js @@ -246,7 +246,7 @@ export class Notification { const { '@context': context, shape } = this.schema[name]; // Add local filename as a prefix for cleaner ttl generation - const fullContext = { ...context, ':': filePath }; + const fullContext = { ...context, '': filePath }; /** * N3 is an implementation of the RDF.js low-level specification that lets you handle RDF in JavaScript easily.