I’d like to store Like
s of web pages as activities on a user’s Pod. I can use @solid/query-ldflex to store a Like
activity with a link as the object
as such:
await data.resolve(`[${target}].createActivity("${data.context.as}Like")`);
However, I’d like to also store the name of the page. As I understand it, the Page
Object from the ActivityStreams spec should cover that use case, but I’m not quite sure how to go about that with @solid/query-ldflex
, or whether that’s even possible in the first place. Do I need to add the Page
to the user’s POD as well (and if so, how?) and then set that as the target? Or can I somehow define the object inline?
Just getting my feet wet here, so I’m guessing I’m still not fully grasping some concepts.