Marnanel Thurman
5f5afa1978
Collection views contain the activity_forms of the members, not just the ids
2019-07-26 17:53:01 +01:00
Marnanel Thurman
9cad59bdc2
add fixme
2019-07-26 17:52:47 +01:00
Marnanel Thurman
8348be5f56
Added Collection model, and modified the collection views to display it.
...
Tests in test_inbox2 use it, but this is a work in progress.
2019-07-26 17:47:44 +01:00
Marnanel Thurman
a412f6cbc1
InboxView fixed up to match OutboxView
2019-07-25 17:17:40 +01:00
Marnanel Thurman
e2a9df0cd7
Check whether a public key is represented by a dict rather than a string.
...
If it is, grab the actual key string from the relevant field.
2019-07-25 17:16:40 +01:00
Marnanel Thurman
55aaff9a4a
Removed extraneous deletes() on errors, because Thing will delete for us.
...
delete() implemented.
2019-07-22 17:59:59 +01:00
Marnanel Thurman
fc3f213757
Thing fields named f_* have content correctly parsed as JSON.
...
Thing.entomb() had rotted; fixed.
Debug print removed.
2019-07-22 17:58:04 +01:00
Marnanel Thurman
270e55b1af
Introduced django_kepi.side_effects, to move all that special-case
...
code out of django_kepi.models.thing.
2019-07-22 17:30:15 +01:00
Marnanel Thurman
d278a8d69e
Put an import back which somehow got deleted and broke stuff
2019-07-22 14:16:04 +01:00
Marnanel Thurman
32ee56b18e
Update to outbox doesn't work on objects you don't own
2019-07-21 18:43:54 +01:00
Marnanel Thurman
517ea268a4
Update activities to outbox work.
2019-07-21 18:38:50 +01:00
Marnanel Thurman
2b6468b7d6
Add f_actor to Thing, because it's too common to keep in other_fields
2019-07-21 18:05:48 +01:00
Marnanel Thurman
98567b816c
Creates which fail get deleted.
2019-07-21 17:26:09 +01:00
Marnanel Thurman
05e4d0ccf6
IncomingMessage.fields memoised
2019-07-21 16:55:15 +01:00
Marnanel Thurman
b4f4a164cf
Test for posting non-activities to outbox. Currently fails.
2019-07-20 23:35:52 +01:00
Marnanel Thurman
5c5a9b7017
Tests for posting to outbox with incorrect IDs both local and remote.
...
They pass.
2019-07-20 23:26:46 +01:00
Marnanel Thurman
806706825b
rm debug message
2019-07-20 23:26:01 +01:00
Marnanel Thurman
609be9b810
f_preferredUsername is stored in JSON
2019-07-19 22:12:39 +01:00
Marnanel Thurman
6c964dddd6
"key" is the whole string, not a dict containing it
2019-07-19 22:12:17 +01:00
Marnanel Thurman
01dc57338c
rm serializers.py, which was left around from un_chapeau
2019-07-18 14:32:26 +01:00
Marnanel Thurman
368814cd9c
Migration to add f_ prefixes in Actor. Should have been in 8aa62d5a
.
2019-07-18 14:31:06 +01:00
Marnanel Thurman
5a02c8c93f
Outbox passes is_local_user to validate. Debug messages cleaned up a bit.
2019-07-18 14:29:31 +01:00
Marnanel Thurman
13a3f47d42
Lots of checks on objects created by "Create"
2019-07-18 14:28:51 +01:00
Marnanel Thurman
8aa62d5abd
Fields unique to Actor have the "f_" prefix if they're fields of the Thing.
...
For example, publicKey becomes f_publicKey. This allows polymorphic subscripting.
Also, cleaned up some of the code from before we introduced polymorphism.
2019-07-18 14:27:21 +01:00
Marnanel Thurman
c57db91ce1
Removing some debug messages which were duplicated elsewhere.
2019-07-18 14:26:02 +01:00
Marnanel Thurman
eb6408badf
missing logging parameter
2019-07-18 14:25:10 +01:00
Marnanel Thurman
a5eba85fea
Rename validate()'s "is_local" to "is_local_user", and store it in the model.
...
This is because "is_local" is ambiguous; was the message received
locally (not over the network), or was the user a local user?
2019-07-18 14:23:43 +01:00
Marnanel Thurman
bf0c673a79
stub OutboxView
2019-07-18 12:16:44 +01:00
Marnanel Thurman
f65a6d4b08
validate() sets up the task and calls it.
...
It isn't itself the task, as before.
2019-07-18 12:16:02 +01:00
Marnanel Thurman
18565c6afe
Huge checkin: central project "kepi" to use the "django_kepi" library.
...
This has shown up some bugs. Checking in the fixes for them too.
2019-07-11 18:25:06 +01:00
Marnanel Thurman
c59228c58f
Remove ActorView. Use ThingView instead.
...
ActorView was based on a (very) old design where Actors were
special-cased.
2019-07-11 17:40:12 +01:00
Marnanel Thurman
b6697c81c6
Attempting to get the visibility tests passing. Not there yet.
2019-07-11 17:24:22 +01:00
Marnanel Thurman
11b187c71f
"preferredUsername" is now held in Actor as a field.
...
Actor can figure out standard paths for local users.
Constants for these added to test_settings.
2019-07-11 17:23:19 +01:00
Marnanel Thurman
67788b7907
test_as_reply passes
2019-07-09 16:37:09 +01:00
Marnanel Thurman
b687ebfe5a
"thread" is a property of Item, not its superclass
2019-07-09 16:15:54 +01:00
Marnanel Thurman
4638315d8d
None of the Create tests throw an exception (but not all of them pass)
2019-07-09 16:03:04 +01:00
Marnanel Thurman
6b62ee8057
"mentions" property
2019-07-09 11:04:55 +01:00
Marnanel Thurman
08a1de4857
save() when creating mentions
2019-07-09 11:04:30 +01:00
Marnanel Thurman
f1c5b28282
Mention uses a CharField for the href, because we might not know them.
...
Actor.by_id() removed, since it's just find_local().
2019-07-09 11:04:00 +01:00
Marnanel Thurman
cda0e7d76b
Tags without href don't cause an exception
2019-07-09 10:36:25 +01:00
Marnanel Thurman
21a872ddf4
fix multiple breakage in Thing.__getitem__
2019-07-09 10:24:11 +01:00
Marnanel Thurman
e3ac0b6622
activity_form updated to expect the new Thing format.
...
Lots of double-dereference json errors fixed.
2019-07-09 00:45:49 +01:00
Marnanel Thurman
59d76c5cf1
f_attributedTo added to item
2019-07-09 00:45:17 +01:00
Marnanel Thurman
a6c6576185
Tidying
2019-07-09 00:44:52 +01:00
Marnanel Thurman
b574ca93c5
remove TYPES array which was replaced by types.py
2019-07-09 00:06:16 +01:00
Marnanel Thurman
1698ccc357
find() creates Things marked as remote, rather than some weird
...
half-arsed replacement of its own.
python-mimeparse added to the requirements because fetch() needs it.
2019-07-05 17:26:21 +01:00
Marnanel Thurman
962e85c0f8
"is_local" param of create() replaces vague "sender" param.
...
Tests for particular fields by Thing type removed, pending
replacement with cleverer system from d_k/things.py.
Class imports for create() done in the importing code
rather than at the top of the file, which leaves a mess.
2019-07-05 17:23:50 +01:00
Marnanel Thurman
d80a241b5d
Added mention tracking.
2019-07-05 17:21:01 +01:00
Marnanel Thurman
6adddb39c3
Thing getitem/setitem honours Audiences
2019-07-03 21:01:45 +01:00
Marnanel Thurman
52b3491e66
Export AUDIENCE_FIELD_NAMES
2019-07-03 21:00:36 +01:00