Create a database table to store the inbox and outbox OrderedCollections #5

Closed
opened 2022-04-28 15:23:25 +00:00 by xy · 3 comments
Owner

We need database tables to store the inbox and outbox OrderedCollections. Ideally the inbox and outbox will contain something similar to the public activity tab of a user's profile. (for instance, https://gitea.com/Ta180m?tab=activity) Maybe we can reuse whatever existing table stores that the public activity.

We need database tables to store the inbox and outbox OrderedCollections. Ideally the inbox and outbox will contain something similar to the public activity tab of a user's profile. (for instance, https://gitea.com/Ta180m?tab=activity) Maybe we can reuse whatever existing table stores that the public activity.
Author
Owner

For the outbox, we will reuse the Action table and possibly add a few more ActionTypes for all the various AP Activites that we will support.

For the outbox, we will reuse the [Action](https://github.com/go-gitea/gitea/blob/main/models/action.go#L70-L85) table and possibly add a few more `ActionType`s for all the various AP Activites that we will support.
Author
Owner

Copied from the #gitea-federation chat:

For the AP inboxes, I think we don't actually need to persist it to the DB if we don't plan on supporting C2S ActivityPub. We can just process incoming Activities that arrive at the inbox endpoint without saving them to the DB.
For instance, Mastodon doesn't support C2S so you can't GET a user inbox or the sharedInbox, and as a result, Mastodon doesn't have to worry about saving the inboxes to disk somewhere.

Copied from the #gitea-federation chat: > For the AP inboxes, I think we don't actually need to persist it to the DB if we don't plan on supporting C2S ActivityPub. We can just process incoming Activities that arrive at the inbox endpoint without saving them to the DB. > For instance, Mastodon doesn't support C2S so you can't GET a user inbox or the sharedInbox, and as a result, Mastodon doesn't have to worry about saving the inboxes to disk somewhere.
Author
Owner

I'm closing this issue because we will just reuse the Action table for the outbox and not persist the inbox.

I'm closing this issue because we will just reuse the Action table for the outbox and not persist the inbox.
xy closed this issue 2022-06-12 20:09:30 +00:00
xy referenced this issue from a commit 2022-07-07 17:59:07 +00:00
This repo is archived. You cannot comment on issues.
No Label
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: xy/gitea#5
No description provided.