| Age | Commit message (Collapse) | Author | Lines |
|
Using jinja's templating extensions, we can recreate the activitypub
inheritance hierarchy without using clunky python OO.
Extending from multiple template files in sequence might cause
unnecesary IO to slow response times; if this ever becomes an issue, it
should be possible to pre-process some of the templating since a lot of
it will be based on constant expressions (such as @context and type).
I think some formatting fixes leaked into this commit; oops! I'm leaving
this note here in the hopes that if I ever want to clean this up, I can
locate this commit easier.
|
|
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.
|
|
Still not even total coverage!
Need to:
- write more tests for outbox manipulation
- look into and implement receiving content from other servers (+ write
tests)
off the top of my head.
|
|
This commit adds support for getting information about a user, as well
as accessing their inbox (not actually getting a CollectionPage yet,
though).
Currently the inbox does not require the right user to be logged in to
access their personal inbox; this should be fixed.
|
|
|