Wykres commitów

538 Commity (8faa494ed6e6c31467528190fac604eb06aa5a3e)

Autor SHA1 Wiadomość Data
Marnanel Thurman 8faa494ed6 Anything with a "former_type" is deemed to be a Tombstone.
This is instead of changing f_type, which has far too many knock-on
effects now that we're using polymorphism.

Tombstones have active=False.

AllUsersView updated so that it uses the polymorphic types.
2019-08-10 17:02:11 +01:00
Marnanel Thurman 712c57730b If publicKey or privateKey are not in the kwargs for create_local_person,
then we load keys from tests/keys rather than expecting django_kepi to
generate new keys for us.
2019-08-10 17:01:08 +01:00
Marnanel Thurman e29d083a37 formatting of values in settings.KEPI made consistent throughout 2019-08-10 16:22:36 +01:00
Marnanel Thurman 2d7411e574 Removed now we're not just a library 2019-08-10 16:22:16 +01:00
Marnanel Thurman 625caf2bb4 Actors use the actor URL format, not the general object URL format 2019-08-09 17:54:59 +01:00
Marnanel Thurman 1003350e85 __str__ on Actor 2019-08-09 17:51:59 +01:00
Marnanel Thurman a062e3740c Renaming "f_privateKey" in Actor to "privateKey"; it's not a field in the ActivityPub sense. 2019-08-09 17:45:10 +01:00
Marnanel Thurman edd67acf9a Rethinking admin forms; much reworking still to come 2019-08-09 17:42:01 +01:00
Marnanel Thurman ef48ef2bc3 host-meta.xml template; should have been checked in earlier 2019-08-09 17:06:58 +01:00
Marnanel Thurman a2f5e03ab0 Webfinger, plus tests 2019-08-09 17:06:44 +01:00
Marnanel Thurman 811e2e1fd9 If local_config doesn't exist, don't worry about it. 2019-08-08 22:28:22 +01:00
Marnanel Thurman 16cd517589 Fixes to settings so that templates get installed properly. 2019-08-08 19:55:32 +01:00
Marnanel Thurman 9d8c60b9c5 local_config is supposed to be local 2019-08-08 19:55:08 +01:00
Marnanel Thurman 3a00f56b2b ...and local_config.py is gitignored 2019-08-08 19:23:50 +01:00
Marnanel Thurman 910dd83198 kepi/settings.py includes kepi/local_config.py 2019-08-08 19:23:05 +01:00
Marnanel Thurman 71e97f6554 Added view for host-meta, and a test for it, which passes.
Moved views.py into views/activitypub.py, so we can have a
separate file for the host-meta view. views/activitypub.py
should be split up further at some point.
2019-08-08 00:01:43 +01:00
Marnanel Thurman 9f04e85577 Version bump to 0.0.30 2019-08-07 11:06:43 +01:00
Marnanel Thurman fd6258f5e4 IncomingMessage in the admin 2019-08-06 00:35:46 +01:00
Marnanel Thurman eff6709ef9 Starting to fix the forms 2019-08-05 20:37:02 +01:00
Marnanel Thurman c86fb7e1bd Merge branch 'master' of gitlab.com:marnanel/kepi 2019-08-05 15:27:28 +01:00
Marnanel Thurman b17af6f62b Removing d_k/types.py and doing the whole thing via polymorphic models.
Model names are their ActivityPub types.

As a result, Thing is renamed to Object.
2019-08-05 15:26:40 +01:00
Marnanel Thurman 31c1eb6fd5 Removing d_k/types.py and doing the whole thing via polymorphic models.
Model names are their ActivityPub types.

As a result, Thing is renamed to Object.
2019-08-05 15:25:20 +01:00
Marnanel Thurman 6c3e8edc55 remove old send_to_inbox test, and move send_to_inbox2 over it 2019-08-05 13:31:07 +01:00
Marnanel Thurman 82da292419 Ported the remaining tests from inbox to inbox2 2019-08-05 13:30:34 +01:00
Marnanel Thurman 3550a118b6 Extra fields in Thing go back into ThingFields,
rather than being stored in Thing.other_fields.
Long overdue.
2019-08-05 13:11:44 +01:00
Marnanel Thurman fc57cc4c71 Error checking. Call _after_create() if it exists. 2019-08-05 13:09:43 +01:00
Marnanel Thurman 0e298c1ac2 test_send_to_inbox2 has test_create and test_follow working at the same time :) 2019-08-04 22:56:05 +01:00
Marnanel Thurman aa26a237be more error checking for delivery 2019-08-04 22:55:53 +01:00
Marnanel Thurman acf2ff5b04 Side-effects for "Follow" work properly now. 2019-08-04 22:44:53 +01:00
Marnanel Thurman 77d02c0317 Various caching issues with find_remote fixed 2019-08-04 22:43:34 +01:00
Marnanel Thurman 803d6bc176 Removed rogue comma that caused key names to be tuples 2019-08-04 22:42:37 +01:00
Marnanel Thurman 1fbda3d3ab Improved error handling during delivery 2019-08-04 22:42:09 +01:00
Marnanel Thurman de9fd89190 Brought test_write_to_inbox2 more up to date; it now passes 2019-08-01 17:54:31 +01:00
Marnanel Thurman 2327c49f8d If create() fails, validation doesn't attempt delivery.
Improved debug logging.
2019-08-01 17:53:53 +01:00
Marnanel Thurman dfbf912801 test_send_to_inbox2 doesn't attempt to GET as a test, because
there's no guarantee in the spec that it'll be visible
2019-08-01 16:34:07 +01:00
Marnanel Thurman cd81fce725 Thing.activity_form() does the right thing if local fields are None 2019-08-01 16:32:23 +01:00
Marnanel Thurman 0c0e9b5290 Collections.get() searches on owner, not username of owner
(how did the old version ever work?)
2019-08-01 16:31:49 +01:00
Marnanel Thurman 2dda098010 Added test_read_announce.
Modified checking to look for the correct types in the result,
for the non-empty tests.

Fix to test_read_empty calling a method with the wrong name!
2019-08-01 16:20:51 +01:00
Marnanel Thurman a6a42576cb activity.go_into_outbox_if_local() called by FollowersView,
not as a special case of side effect.
2019-08-01 16:17:55 +01:00
Marnanel Thurman f62aba3c3d Don't even attempt to deliver to Public 2019-08-01 16:10:57 +01:00
Marnanel Thurman f08c547ebf generalised ATSIGN_CONTEXT 2019-08-01 16:03:23 +01:00
Marnanel Thurman a439768290 Debug logging added. Logger name changed to django_kepi like the package 2019-08-01 16:01:29 +01:00
Marnanel Thurman dcb4a9ec9b Refactored rendering of objects into JSON.
_make_query_page() renamed to _make_query_page_url().

Default _modify_list_item renders the item as if it had been requested singly,
rather than just running it through str().

Debug logging.
2019-08-01 15:59:50 +01:00
Marnanel Thurman 3cb624250f "Create" activities have the object written out in full 2019-08-01 15:58:40 +01:00
Marnanel Thurman 414b89197c Don't print find result to logger unless result is not None 2019-08-01 15:58:19 +01:00
Marnanel Thurman c99d0a2000 COLLECTION_PATH corrected 2019-07-31 20:41:27 +01:00
Marnanel Thurman 0de4de3f1f OutboxView has an activity_store; FollowingView has a no-op activity_store 2019-07-31 20:40:46 +01:00
Marnanel Thurman 20d82ba511 Create's side effect includes going into outbox if local 2019-07-31 20:40:05 +01:00
Marnanel Thurman a6c51879a0 Fixing list_path; f_preferredUsername is stored in JSON (why? this is silly)
rm debug message
2019-07-31 20:38:56 +01:00
Marnanel Thurman a3674c941d Activity.go_into_outbox_if_local() 2019-07-31 20:38:31 +01:00