DjangoLDPNotifications provides an inbox of notifications on a nested field of the user model /inbox/
Changes to DjangoLDP to support backlinks & ActivityStreams will use this url as a POST and GET for a user's Activities
I propose that DjangoLDPNotifications should be rolled into this, and the current uses of it should be refactored to use ActivityPub.. @jbpasquier you understand DjangoLDP-Notifications better than me, is this correct, and do you know how it will impact HubL's chat feature (or another client)?
Designs
Child items
...
Show closed items
Linked items
0
Link issues together to show that they're related.
Learn more.
There may be no difference between an inbox of a resource and an inbox of an user right?
So, we're by default on the first case. But, we still need to keep DLDP-notifications to handle subscriptions & all things that are currently not implemented on AS/AP part of DjangoLDP, so we're also on the second solution.
I'm not sure to understand but what you are saying @calummackervoy is that the /inbox path already exists on user and you would like to remove it to use the same thing than for other resources?
@matthieu the issue is about the backlinks using /inbox/ to GET/POST ActivityStream Activities, whilst currently DjangoLDP-Notification uses inbox also but storing Notification objects
Scoping the changes I would need to change the Notification model to extend Activity, and the format of requests to be compatible with ActivityStreams format. It will probably affect the front-end in the sense that some field names have changed, but shouldn't affect it apart from this
Notifications are mostly used in chat, right? Who is the person (backend) that I should consult about this?
Beware, as we've only one server for all productions and all testing instances, that mean that migration will break the other. We must sync when we'll need to deploy this new version and can't test it properly.
Good news is that's only a JSON, as long as we can post it with curl and rewrite the one sent by Prosody, it'll works the exact same way.
For client-side adaptation, it'll be @matthieu I guess. :-)
And for the DjangoLDP part, as we have no other Matt' it's all yours. :) I can provide some help here if needed.
For now it's not a necessity that we can GET the activities on a user's inbox, so I've changed the working of backlinks so that each server has only one inbox (meaning this isn't a problem for the 7th May MVP release)
I think that at some point it would be good to offer users inboxes for their activities, so we should keep this issue open? But maybe it's not a priority
Sure, as the target inbox's owner/resource is not always the target field of an activity.
When Bobactormentiontypeyouto.id/object on Sib Contributortarget. Here, it should goes from the Sib Contributor's outbox to your inbox. We could even goes more verbose, because you can mention someone from another channel to another (#channel), here it'll also need an origin.