diff options
| author | Tom Harley | 2021-07-30 18:35:08 +0000 |
|---|---|---|
| committer | Tom Harley | 2021-07-30 18:35:08 +0000 |
| commit | c77d6a4d4a1d628788be73491aa7fa4e4fdcff05 (patch) | |
| tree | 90f92c373b085818243835c323fa6e1884854ce9 /sw/schema.sql | |
| parent | Add more inbox/outbox tests (diff) | |
| download | swap-c77d6a4d4a1d628788be73491aa7fa4e4fdcff05.tar.gz swap-c77d6a4d4a1d628788be73491aa7fa4e4fdcff05.zip | |
Add templates
Rather than using jsonify on a dict, the system now uses render_template on json documents. This gives the ability to extend previous files (which might be useful for activitypub features), and also enables using different templates for different filetypes.
Supplied are templates for accessing inboxes and outboxes in JSON-LD and HTML.
The “items” field in get_user_inbox_page.json and get_user_outbox_page.json might be currently borked.
Diffstat (limited to 'sw/schema.sql')
| -rw-r--r-- | sw/schema.sql | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/schema.sql b/sw/schema.sql index 35aae2d..97f4785 100644 --- a/sw/schema.sql +++ b/sw/schema.sql @@ -1,6 +1,8 @@ drop table if exists inbox; create table inbox ( + id integer primary key, + recipient text, received text, @@ -34,6 +36,7 @@ create table users ( username text unique not null, password text not null, inbox_size integer default 0, + outbox_size integer default 0, ap_attachment text, ap_attributedTo text, |
