| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2021-07-31 | Display inbox/outbox contents correctly | Tom Harley | -1/+1 | |
| 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. | ||||
| 2021-07-30 | Add templates | Tom Harley | -0/+20 | |
| 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. | ||||
