Commit graph

74 commits

Author SHA1 Message Date
Marius Orcsik
b89c9ee68c
Renamed ObjectID to ID 2019-12-05 19:02:15 +01:00
Marius Orcsik
cd46437bf2
Moved integration tests back to their own folder 2019-12-03 20:45:26 +01:00
Marius Orcsik
c3a38f35e7
Holy shit! Merged the activitystreams repo
Only 3 tests failing
2019-12-03 17:23:59 +01:00
Marius Orcsik
794d2e1929
Fixing some tests 2019-10-15 22:04:15 +02:00
Marius Orcsik
ed06508b7b
Sigh, local object/actor structs have just become more complicated 2019-09-27 16:35:20 +03:00
Marius Orcsik
c69bcfeaeb
Fixed errors resulting from using local Object types 2019-09-24 10:05:14 +03:00
Marius Orcsik
f5f5ea9b0a
Updated activitystreams version and fixing some tests 2019-05-31 15:02:42 +02:00
Marius Orcsik
45fd19d32c
Fix some tests 2019-05-18 23:11:08 +02:00
Marius Orcsik
0a4176f83a
Some formatting 2019-03-03 21:42:46 +01:00
Marius Orcsik
4a4928446c
Updated to activitystreams version with plural NaturalLanguageValues array type 2019-02-21 18:00:03 +01:00
Marius Orcsik
828e385f60
Make use of subtests for unmarshalling tests 2019-02-13 10:25:30 +01:00
Marius Orcsik
573eb92b33
Using aliases for actor types 2019-01-31 13:27:06 +01:00
Marius Orcsik
8b3fd85a7c
Reworking a lot of the dependencies between activitypub and activitystreams objects
It turns out extending one from the other is not that easy

Still broken test for tests/mocks/like_activity_with_iri_actor.json
2019-01-30 22:01:56 +01:00
Marius Orcsik
b987bcf379
Moved everything related to activitypub extensions to its own project 2019-01-22 16:38:46 +01:00
Marius Orcsik
281b73cbc2
Moved to go-ap 2019-01-07 14:54:19 +01:00
Marius Orcsik
7f9c695d13
Fix loading to/bto/cc/bcc
Added unmarshalling test pair for them

Remove duplicate func for dynamic loading of as.Items
2018-12-08 15:45:21 +01:00
Marius Orcsik
db8a905f46
Reenabled object_with_replies unmarshalling test 2018-12-03 13:41:34 +01:00
Marius Orcsik
e9ef1a6ff5
Streamlined objects unmarshalling to get rid of duplicated work on same properties 2018-12-02 16:50:40 +01:00
Marius Orcsik
269c06fbb2
Factored out the objects' common properties 2018-11-23 15:22:56 +01:00
Marius Orcsik
9dcc89db96
Adding Tag property unmarshalling for Objects 2018-11-14 13:42:08 +01:00
Marius Orcsik
9e4340bf26
Make URL properties accept array of IRI objects 2018-10-31 16:26:51 +01:00
Marius Orcsik
c1f61e3a35
Adding Unmarshalling methods for CollectionPage and OrderedCollectionPage 2018-10-18 20:19:18 +02:00
Marius Orcsik
cbad1a2add
Removed some whitespaces that were confusing godoc 2018-10-18 11:58:37 +02:00
Marius Orcsik
f21b60ad61
Remove URI type in favour of IRI 2018-10-11 20:13:34 +02:00
Marius Orcsik
784e85f7fc
Refactored most of the activitystreams-vocab structs to their own package 2018-10-11 11:26:00 +02:00
Marius Orcsik
602911a7db
Refactored elements that were of CollectionInterface type to Item type so we can pass IRIs to them 2018-10-04 20:50:03 +02:00
Marius Orcsik
e1d7e465d7
Added LikeActivity with IRI actor test 2018-09-06 21:56:46 +02:00
Marius Orcsik
ef08c03a06
Moved activity_create simple test 2018-09-06 21:55:21 +02:00
Marius Orcsik
c8ffbb0844
Reinstate simple activity unmarshal test 2018-09-02 15:51:53 +02:00
Marius Orcsik
e05502a36a
Switch to NaturalLanguageVal as arrays instead of simple maps 2018-09-02 15:44:00 +02:00
Marius Orcsik
017c064ac8
Changes to mocks 2018-08-31 17:58:07 +02:00
Marius Orcsik
352298aa7c
Show values when possible when failing deep equality 2018-08-31 17:52:43 +02:00
Marius Orcsik
3316087ffe
Change Activity.Actor property to be ObjectOrLink interface 2018-08-31 13:40:02 +02:00
Marius Orcsik
26b16b6ece
NaturalLanguage Unmarshal test and improvements 2018-08-31 13:38:15 +02:00
Marius Orcsik
5213806994
Updated the Unmarshalling with a test for replies 2018-08-15 11:33:50 +02:00
Marius Orcsik
28d2a1e33f
Added published date and other date fields to Object/Collection unmarshall 2018-08-06 19:11:24 +02:00
Marius Orcsik
b6ec84c634
Renamed func type 2018-08-06 15:26:50 +02:00
Marius Orcsik
b4ab90daff
Use constant for empty LangRef value 2018-08-06 13:09:24 +02:00
Marius Orcsik
d4b287f531
Fix collection unmarshalling test
Add generator and attributedTo properties to the test
2018-08-06 13:06:14 +02:00
Marius Orcsik
fb363aa377
Improve collection unmarshalling 2018-08-05 13:54:01 +02:00
Marius Orcsik
f40d875d04
Going deeper and deeper down the jsonld rabbit hole.
The current approach doesn't look too good
2018-08-01 10:52:11 +02:00
Marius Orcsik
0eedce953c
Fix error regarding output specifier 2018-07-25 12:52:07 +02:00
Marius Orcsik
b4baafa9f3
Fix Outbox test 2018-07-25 12:34:36 +02:00
Marius Orcsik
51f73c2cba
Fix failing test regarding ObjectID 2018-07-25 11:57:49 +02:00
Marius Orcsik
4dc584b0d4
Added UnmarshalJSON methods for some types
Add some tests
2018-07-24 23:11:08 +02:00
Marius Orcsik
72c2d5c331
Use package aliases for jsonld and activitypub in tests 2018-07-18 16:33:40 +02:00
Marius Orcsik
8308c6fb22
Converted the jsonld context to be an empty interface
This allows us to support passing it just as a string or URI
2018-07-16 13:26:26 +02:00
Marius Orcsik
8bd5130d0f
Move the context to a package variable 2018-07-06 22:33:47 +02:00
Marius Orcsik
978985644e
Refactored how the repo looks 2018-07-06 12:48:04 +02:00
Marius Orcsik
7f8193dff8
Refactored objects to include full AP structure 2018-06-09 14:05:46 +02:00