From c77d6a4d4a1d628788be73491aa7fa4e4fdcff05 Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Fri, 30 Jul 2021 18:35:08 +0000 Subject: 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. --- sw/schema.sql | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sw/schema.sql') 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, -- cgit v1.2.1