Marnanel Thurman
e794076248
Splitting the manage.py "kepi" subcommands into separate commands in their own right.
...
This is for #5 , but we still have to make a separate commandline tool to call these commands.
2019-08-18 23:10:27 +01:00
Marnanel Thurman
ad2031a644
kepi.png crushed again. icon.png added.
2019-08-17 20:24:32 +01:00
Marnanel Thurman
5aa4c4244a
pngcrush kepi.png
2019-08-17 20:22:28 +01:00
Marnanel Thurman
b2515b42ac
If a local user sends to "public", then delivery sends it to their
...
outbox. Remote users sending to "public" is still ignored.
2019-08-17 19:37:56 +01:00
Marnanel Thurman
512e26d630
management: add "kepi posts" to list posts
2019-08-17 19:37:36 +01:00
Marnanel Thurman
9b9ad57d5a
Note.__str__ shows the start of the content
2019-08-17 19:36:55 +01:00
Marnanel Thurman
2f37d61e31
Local collections (specifically, follower lists) will be resolved into their several inboxes if they're an audience.
2019-08-17 18:34:54 +01:00
Marnanel Thurman
274065f95f
altair.example.com -> testserver
2019-08-17 18:00:53 +01:00
Marnanel Thurman
2c1990b538
Auto-accepting Follows: use create()'s ability to deliver. Don't try to deliver on our own.
2019-08-17 17:59:57 +01:00
Marnanel Thurman
de54afc7cc
Debug logging
2019-08-17 17:59:46 +01:00
Marnanel Thurman
bb21eb5785
Object.get_by_url() added.
...
getitem['foo__obj'] now calls Object.get_by_url().
The old behaviour of calling find() is available at 'foo__find'.
Follow activities no longer use explicit object fields.
2019-08-17 17:59:18 +01:00
Marnanel Thurman
29165f0b17
Accepts have an explicit object field. Logging message corrected.
2019-08-17 17:38:43 +01:00
Marnanel Thurman
99c974ef3c
Tests use example.org etc rather than real-life URLs!
2019-08-17 17:19:06 +01:00
Marnanel Thurman
2c865cc94a
rm one of the two very similar test cases in test_deliver
2019-08-17 17:18:51 +01:00
Marnanel Thurman
76417cdbb3
instantiate our own logger
2019-08-17 17:18:05 +01:00
Marnanel Thurman
a1138ee73c
Audience tests don't run side-effects on the objects they create for testing
2019-08-17 17:16:24 +01:00
Marnanel Thurman
e5984df43d
logger.debug, not logging.debug
2019-08-17 17:15:17 +01:00
Marnanel Thurman
ae5a265af0
Validation tells create() whether to deliver, rather than trying to deliver by itself.
...
This was causing some activities to be delivered twice.
2019-08-17 17:13:29 +01:00
Marnanel Thurman
38fe4fb7c7
Only Activities get delivered.
2019-08-17 17:13:12 +01:00
Marnanel Thurman
96e6d0c21b
Objects created by "Create" don't get delivered (even though their Create might.)
2019-08-17 17:08:19 +01:00
Marnanel Thurman
9299bc8c7b
Local recipients always get delivered to directly, rather than having their inbox looked up.
...
Outgoing activities which have no @context will have a default one added.
Some defensive programming added.
2019-08-17 17:03:49 +01:00
Marnanel Thurman
794767c8ac
Create no longer special-cased for "object" field being written out in full;
...
instead, activities can have "_explicit_object_field"
2019-08-17 17:02:47 +01:00
Marnanel Thurman
fe9c2c95ee
ATSIGN_CONTEXT no longer ends with comma. Logger no longer exported.
2019-08-17 17:02:07 +01:00
Marnanel Thurman
1432d3b83f
Both existing manage commands unified as "manage.py kepi",
...
though their functionality has been removed.
It'll be back.
2019-08-16 18:39:41 +01:00
Marnanel Thurman
9952b3836a
create() has an "incoming" parameter which is passed through to deliver()
2019-08-16 18:39:07 +01:00
Marnanel Thurman
8547388f64
IncomingMessage.__str__ contains the date as well as the UUID
2019-08-16 18:38:43 +01:00
Marnanel Thurman
163ab4c76d
Following a remote user has no side-effects
2019-08-16 18:38:26 +01:00
Marnanel Thurman
7a940ad065
delivery: no need to look up an actor if we actually have the object in the dict
2019-08-16 18:38:03 +01:00
Marnanel Thurman
c1b650834d
is_local() works with non-strings which have a "url" property
2019-08-16 18:37:24 +01:00
Marnanel Thurman
77ab5a449b
IncomingMessage in the admin
2019-08-16 18:36:21 +01:00
Marnanel Thurman
29aef49526
Slight tweaks to nodeinfo based on information from the validator
2019-08-15 16:53:26 +01:00
Marnanel Thurman
484f941d30
node-info support.
...
Also checking in the tests for hostinfo support, which got
left out of that commit.
2019-08-15 16:46:48 +01:00
Marnanel Thurman
045daae4c6
Any Object can Mention. Previously it was only Items, which doesn't make much sense.
...
Also rm redundant and confusing import statement.
2019-08-14 23:21:35 +01:00
Marnanel Thurman
a05cd5e8f1
Removing unique constraint on remote URLs, for now
2019-08-14 22:51:34 +01:00
Marnanel Thurman
9fab913b7a
Rather hasty models/README.md
2019-08-14 19:36:36 +01:00
Marnanel Thurman
74bbb283ba
Docstrings for views
2019-08-14 19:12:55 +01:00
Marnanel Thurman
f9cccb8302
Added views/README.md to explain Kepi's weird ACTIVITY_* views system
2019-08-14 19:07:19 +01:00
Marnanel Thurman
1a9e072093
much comment. so docstring.
2019-08-14 18:59:28 +01:00
Marnanel Thurman
f2cd9b3b79
rm some obsolete files
2019-08-14 18:03:12 +01:00
Marnanel Thurman
b9196603b9
activity_form doesn't try to decorate 'publicKey' if it doesn't exist
2019-08-14 18:02:36 +01:00
Marnanel Thurman
645e6e97b4
More documentation
2019-08-14 17:56:02 +01:00
Marnanel Thurman
8790b2a395
rm a lot of README.md which hasn't been true for ages.
...
It needs rewriting, though.
2019-08-14 14:41:08 +01:00
Marnanel Thurman
af604ed1f2
all requests for local users have to say explicitly that they're not remote!
...
(We should probably improve the calling convention there)
2019-08-14 14:34:57 +01:00
Marnanel Thurman
a892c1c35a
rm comment which isn't true any more
2019-08-14 14:34:57 +01:00
Marnanel Thurman
4aa77864ac
rm CSRF protection, which breaks get/post requests
2019-08-14 14:34:57 +01:00
Marnanel Thurman
a50b4eb1d7
stop Actor advertising the "featured" collection for now,
...
since the view doesn't know how to produce it
2019-08-14 14:34:57 +01:00
Marnanel Thurman
b6199595bb
put the "digest" header back in for validation(!)
...
also, more logging for validation
2019-08-14 14:34:43 +01:00
Marnanel Thurman
3f7d1ab299
fixed logging
2019-08-14 14:29:28 +01:00
Marnanel Thurman
08e4ea341e
sign header is "signature", not "authorization"
2019-08-14 14:28:55 +01:00
Marnanel Thurman
2a22727b9e
default userpic is avatar_0, not avatar0
2019-08-14 00:31:58 +01:00