Marnanel Thurman
e8d217ac44
Added "remote" field to ThingUser so we can track remote users.
...
Implemented ThingUser.activitypub_create().
2018-10-03 20:26:30 +01:00
Marnanel Thurman
ff44834b34
Intermediate checkin for AsyncResult
2018-10-03 19:36:39 +01:00
Marnanel Thurman
e58a303589
Test that messages where all parts are known go through immediately. Also, url_identifier() -> activity_id in ThingArticle for regularity.
2018-09-27 16:52:29 +01:00
Marnanel Thurman
2b29a8e8e2
Removed all the old Cobject stuff, at last. This confused
...
makemigrations so much that I killed all the existing migrations
and started again.
Activity fields representing key+value pairs all begin with "f_"
because it was getting confusing when only some of them did.
Activity.deserialize() renamed Activity.create().
The tests don't all pass at present, but they will soon.
2018-09-16 21:42:27 +01:00
Marnanel Thurman
a5e67a415c
rm ThingUser's link to Actor, which is going away soon.
...
Implemented the find_activity() methods for ThingUser and ThingArticle.
2018-09-12 23:48:14 +01:00
Marnanel Thurman
553c3d8d3d
Okay, the NamedObject table was a mistake. Let's use the existing registration system.
2018-09-06 23:01:18 +01:00
Marnanel Thurman
20101646af
TombstoneException imported properly
2018-09-06 18:47:01 +01:00
Marnanel Thurman
f515b3767f
ThingUser.serialize() -> activity property.
...
also, "Queen Anne" is a magic value for throwing a Tombstone in testing
2018-09-06 18:31:16 +01:00
Marnanel Thurman
7895641ec3
ThingUser.__str__
2018-09-06 18:23:53 +01:00
Marnanel Thurman
5ea5e6193f
Drop YourPerson. It was only confusing things.
2018-09-01 22:54:30 +01:00
Marnanel Thurman
dd8daa7f66
Added tests to ensure that other apps can make to our data.
...
Reworked Actor: the only thing we know about an Actor is their URL.
Removed tests for Followers collections because it's hard to test
without subclassing the view. I may put it back in later.
2018-08-30 00:59:38 +01:00
Marnanel Thurman
6e63dcdeab
Actor's "name" is a URLField, not a CharField.
...
The identifying URL is the only information we can be sure we have.
ThingUser's "name" field is modified similarly.
get_or_make() method is added to Actor.
ThingUser's as_activity() method is renamed to serialize() for consistency.
2018-08-29 20:21:39 +01:00
Marnanel Thurman
86df132551
built stub methods; basic tests pass
2018-08-27 19:13:30 +01:00
Marnanel Thurman
c04a83e442
intermediate
2018-08-27 18:53:52 +01:00
Marnanel Thurman
38fbaf3366
intermediate
2018-08-24 18:13:57 +01:00
Marnanel Thurman
e1a3aca719
intermediate
2018-08-19 21:47:54 +01:00
Marnanel Thurman
0d8017ac5e
added url_identifier to test ThingUser model
2018-08-19 17:47:46 +01:00
Marnanel Thurman
368434fd89
renamed activity_fields() to serialize() throughout. rm old call to register_type which no longer exists
2018-08-19 16:49:48 +01:00
Marnanel Thurman
737e58d6cd
Rewrite of much of django_kepi/models.py to use GenericForeignKeys.
...
Unfortunately, now the tests break...
2018-08-18 20:21:39 +01:00
Marnanel Thurman
1c09eb1d5d
one-to-one links from ActivityObject
2018-08-12 14:06:26 +01:00