Commit graph

565 commits

Author SHA1 Message Date
Marius Orcsik
a26398b9f2
Moving handlers from activitypub package to their own 2019-05-31 15:49:37 +02:00
Marius Orcsik
bda0e8c688
ItemHandlerFn should receive an ObjectLoader repo not ObjectSaver 2019-05-31 15:43:26 +02:00
Marius Orcsik
58af820987
Fix CollectionHandler ServeHTTP error on jsonld marshal 2019-05-31 15:10:35 +02:00
Marius Orcsik
6fe6a4164f
Comment 2019-05-31 15:06:25 +02:00
Marius Orcsik
0f3e02e278
Using new storage package instead of local one 2019-05-31 15:05:36 +02:00
Marius Orcsik
f5f5ea9b0a
Updated activitystreams version and fixing some tests 2019-05-31 15:02:42 +02:00
Marius Orcsik
5829d05992 Add two basic tests for ToActivity and ToObject 2019-05-30 20:44:02 +02:00
Marius Orcsik
be3f99242b Forgot to not increment the where values counter 2019-05-28 21:51:15 +02:00
Marius Orcsik
d3ef08f261
Clean BCC and Bto on activities after returning deduplicated recipients list 2019-05-26 22:29:34 +02:00
Marius Orcsik
268f6a752e
Improved recipients deduplication logic 2019-05-26 22:28:55 +02:00
Marius Orcsik
4d9eb144b0
Added some additional ToX functions 2019-05-24 20:20:00 +02:00
Marius Orcsik
ab60e15c53
Added CollectionLoader interface 2019-05-22 18:19:21 +02:00
Marius Orcsik
0d3ea6d3f5
Formatting 2019-05-18 23:13:35 +02:00
Marius Orcsik
706be92cc2
Improvements to how we set the typer function for Unmarshalling 2019-05-18 23:13:06 +02:00
Marius Orcsik
8ea6a5ef72
Updated to latest activitystreams 2019-05-18 23:11:53 +02:00
Marius Orcsik
45fd19d32c
Fix some tests 2019-05-18 23:11:08 +02:00
Marius Orcsik
385e1cd273
Set the ItemTyperFunc when doing UnmarshalJSON 2019-05-18 22:45:54 +02:00
Marius Orcsik
b6f232a89b
Updated to latest activitystreams 2019-05-18 16:37:11 +02:00
Marius Orcsik
14d9cc820b
Fix the object type tests 2019-05-18 16:35:08 +02:00
Marius Orcsik
4e3f47fa79
Adding comments for activity types groups 2019-05-16 17:14:30 +02:00
Marius Orcsik
86446182b1
Add the correct types for Content Experience activities 2019-05-16 17:06:31 +02:00
Marius Orcsik
4cbf5d623e
Updated to latest activitystreams package 2019-05-16 11:11:23 +02:00
Marius Orcsik
3642d21563
Simplify type validation 2019-05-16 11:08:43 +02:00
Marius Orcsik
c2cc81ff3b
Added ToPerson function 2019-05-15 22:22:36 +02:00
Marius Orcsik
9255f5ce5d
Adding unmarshal Tombstone 2019-05-12 20:13:06 +02:00
Marius Orcsik
d8332178b9
We need to return pointers from the typer function 2019-05-12 20:03:10 +02:00
Marius Orcsik
b2c3040f04
Returning the correct types for objects with additional properties
These objects are: place, profile, relationship and tombstone
2019-05-12 19:33:58 +02:00
Marius Orcsik
ed9c46fc7b
Renamed the Fold* functions to Flatten* 2019-05-11 11:53:32 +02:00
Marius Orcsik
82ef950fd2
Added helper functions to collapse Items to IRIs 2019-05-11 10:32:55 +02:00
Marius Orcsik
3470d1f02e
Also return an error from To* functions 2019-05-07 23:11:15 +02:00
Marius Orcsik
8b5feb3b2b
Added total items to the Load* methods' return values 2019-05-05 22:56:23 +02:00
Marius Orcsik
f740060847
Updated the handlers 2019-05-05 21:01:18 +02:00
Marius Orcsik
4a00626af8
Updated ToObject to cover all object types 2019-05-05 14:30:26 +02:00
Marius Orcsik
a11650ffba
Updated ToActivity to cover all activity types 2019-05-05 14:25:55 +02:00
Marius Orcsik
1c21b90a40
Skipping empty tests 2019-05-05 09:35:21 +02:00
Marius Orcsik
03fc2158a8
Skipping the empty tests 2019-05-05 09:32:45 +02:00
Marius Orcsik
8020d0b4b2
Add start of ToActivity and ToObject functions
Some test stubs for other object related functions
2019-05-05 00:52:25 +02:00
Marius Orcsik
302a70f172
Adding some more properties to unmarshalling 2019-05-05 00:15:35 +02:00
Marius Orcsik
e13c279cfa
Default to HTTP status OK 2019-05-04 20:24:59 +02:00
Marius Orcsik
26d0e5e45b
Added generic collection typer logic 2019-05-04 18:38:42 +02:00
Marius Orcsik
d0459a1067
Added the interfaces we need to implement in order to support Loading/Saving of ActivityPub items 2019-05-04 18:31:22 +02:00
Marius Orcsik
9267fbd9be
Added the generic handlers logic 2019-05-04 18:30:45 +02:00
Marius Orcsik
5b5a51daed
Dont's stop executing a request if SignFn failed 2019-04-14 21:12:38 +02:00
Marius Orcsik
a516ad03a5
Rename the parent of CollectionPage object so we avoid conflict with CollectionInterface 2019-03-10 10:11:31 +01:00
Marius Orcsik
11b29a3096
Updated jsonld and activitystreams versions 2019-03-06 12:17:40 +01:00
Marius Orcsik
2a794fbd6a
Updated jsonld version 2019-03-06 12:17:05 +01:00
Marius Orcsik
9d29e69cfc
Go fmt 2019-03-06 12:17:05 +01:00
Marius Orcsik
3f3e82b0f7
Move signing function as a member to the client struct 2019-03-04 21:33:09 +01:00
Marius Orcsik
0a4176f83a
Some formatting 2019-03-03 21:42:46 +01:00
Marius Orcsik
1eebd261f1
Updated to latest activitystreams 2019-03-03 21:42:25 +01:00