From 68703447d8fc57c7b77b66a6acc05bf22fb7d71b Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Sat, 31 Jul 2021 14:06:45 +0000 Subject: Display inbox/outbox contents correctly As per previous commit, the contents of inboxes and outboxes were not being properly displayed, which was difficult to test because of there being very few items in the test DB. This commit includes moving functions such as prepared_output into a new file sw/util.py; including them in sw/users.py made little sense and caused a circular dependency with sw/auth.py. A stub function for item info retreival has also been created, in new file sw/items.py. --- sw/schema.sql | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'sw/schema.sql') diff --git a/sw/schema.sql b/sw/schema.sql index 97f4785..2dbd1ec 100644 --- a/sw/schema.sql +++ b/sw/schema.sql @@ -6,16 +6,7 @@ create table inbox ( recipient text, received text, - ap_content text -); - -drop table if exists outbox; - -create table outbox ( - sender text, - sent text, - - ap_content text + content_id text ); drop table if exists items; @@ -23,6 +14,10 @@ drop table if exists items; create table items ( id integer primary key, + actor text, + type text, + target text, + created text, updated text, -- cgit v1.2.1