Commit graph

100 commits

Author SHA1 Message Date
Mouse Reeve
2fcfebd4e5 fixes broadcasting for incoming activities 2021-02-07 16:23:20 -08:00
Mouse Reeve
e61d8b7638 Serialize lists as custom activitypub object 2021-02-02 11:13:15 -08:00
Mouse Reeve
25d72c5d1e Save attachments on incoming statuses 2020-12-23 13:38:36 -08:00
Mouse Reeve
365408e86b Handle reverse serialized fields with no serialized field 2020-12-23 13:33:46 -08:00
Mouse Reeve
a3df0847e1 Fixes celery tasks expanding data not setting many to many fields 2020-12-23 12:45:40 -08:00
Mouse Reeve
b4c60c0591 Catches exception thrown when boosting unknown statuses 2020-12-21 14:25:10 -08:00
Mouse Reeve
1204679cbd Change transaction atomic to avoid cascading errors 2020-12-19 18:34:37 -08:00
Mouse Reeve
0c6049b81c Discard remote boosts 2020-12-18 12:38:27 -08:00
Mouse Reeve
c470aeb3ce Create helper function on field for settings values 2020-12-13 12:02:26 -08:00
Mouse Reeve
e58ef83f20 Fixes image fields breaking user import 2020-12-12 15:44:17 -08:00
Mouse Reeve
4ed713662e Fixes skipping refresh on matched object 2020-12-12 13:59:44 -08:00
Mouse Reeve
7c43fa1f7c Adds deduplication fields 2020-12-12 13:39:55 -08:00
Mouse Reeve
cc42e9d149 Asyncronously set related fields 2020-12-08 09:43:12 -08:00
Mouse Reeve
4d4ee8b8c3 Starts getting reverse fields working for deserialization
also fixes the fields on the image model and runs a long overdue
migration
2020-12-07 18:28:42 -08:00
Mouse Reeve
6817babf3c adds some tests for to_model 2020-12-07 12:19:15 -08:00
Mouse Reeve
7a90aa8f6c Start moving serializing from to_model to fields 2020-12-05 21:33:48 -08:00
Mouse Reeve
142a39cf55 Updates remote user when refreshing key 2020-12-04 16:26:07 -08:00
Mouse Reeve
de6147ecfa Ignore many to many activitypub serialization of non-lists 2020-12-04 08:29:54 -08:00
Mouse Reeve
a85043b351 Updates to_model to use fields 2020-12-03 12:35:57 -08:00
Mouse Reeve
74a58e5267 Use custom model fields in user model 2020-11-30 10:32:29 -08:00
Mouse Reeve
9ddd60ce16 Fixes broadcast tests 2020-11-29 09:40:15 -08:00
Mouse Reeve
b4fe9f160f Correctly look up books by remote/origin id 2020-11-28 18:11:52 -08:00
Mouse Reeve
72c7829bab Preserve remote_id syntax for authors and books 2020-11-28 17:29:03 -08:00
Mouse Reeve
7ed2e310c0 User origin ids for books and authors 2020-11-28 13:40:09 -08:00
Mouse Reeve
421a13fda0 automatically load authors and editions 2020-11-28 13:00:04 -08:00
Mouse Reeve
b0202eb8e8 Remove special remote user handling code
also fixes date parsing
2020-11-28 11:48:17 -08:00
Mouse Reeve
fd7e476c9b refactors tag model to fit ordered collection structure 2020-11-28 11:04:54 -08:00
Mouse Reeve
a93b5cf5bc Use remote_id resolver to load books, user 2020-11-28 10:18:24 -08:00
Mouse Reeve
ebb82287c2 First pass at recursively resolving foreign keys 2020-11-27 22:10:38 -08:00
Mouse Reeve
5638597112 Fixes errors caught in tests 2020-11-27 20:27:56 -08:00
Mouse Reeve
4626d94ab9 handle image attachments recursively 2020-11-27 20:11:46 -08:00
Mouse Reeve
2480690378 Automatically handle image fields in model serializer 2020-11-27 18:26:07 -08:00
Mouse Reeve
4ae785a7f7 move image activity to its own file 2020-11-27 17:59:46 -08:00
Mouse Reeve
0ec40ae748 Merge branch 'main' into refactor-bookwyrm-connector 2020-11-25 11:21:13 -08:00
Mouse Reeve
aed360d07e Fixes serializer handling default dataclass fields 2020-11-25 11:16:01 -08:00
Mouse Reeve
641ac22786 remove outdated tests 2020-11-24 16:26:28 -08:00
Mouse Reeve
847014720e Refactors bookwyrm connector to use activitypub serializer 2020-11-24 16:05:00 -08:00
Mouse Reeve
ff5a0f7bc2 Adds alt text to status images 2020-11-24 11:44:13 -08:00
Mouse Reeve
ad7ce6595b Receive and save incoming images 2020-11-24 11:25:07 -08:00
Mouse Reeve
e2debd855c Convert activitypub Image into model ImageField 2020-11-23 13:43:46 -08:00
Mouse Reeve
9a55dba315 Special handling for setting many to many fields in serializer 2020-11-20 09:59:55 -08:00
Mouse Reeve
72b4c150f6 (De)serializers for tag fields 2020-11-20 09:28:54 -08:00
Mouse Reeve
648e7a7581 Special error for catching activitypub serialization issues 2020-11-12 11:59:34 -08:00
Mouse Reeve
cfa4cb015d corrects tests for latest code changes 2020-11-07 17:48:50 -08:00
Mouse Reeve
152343d251 Boost and unboost federation fixes 2020-11-04 16:28:32 -08:00
Mouse Reeve
0cf1838276 Mention and notify users when creating a status 2020-11-01 10:13:51 -08:00
Mouse Reeve
9ef03664f2 lookup books when resolving activity json 2020-10-31 12:59:15 -07:00
Mouse Reeve
0393d81230 Fixes loading covers and authors 2020-10-30 17:18:25 -07:00
Mouse Reeve
8cf7e4405d minor style fixes 2020-10-16 19:13:18 -07:00
Mouse Reeve
f77c156733 rename main code directory 2020-09-17 13:30:54 -07:00
Renamed from fedireads/activitypub/base_activity.py (Browse further)