mariusor
|
d4021d85d8
|
Ran gofmt -s
|
2021-11-12 19:18:20 +01:00 |
|
mariusor
|
0c3f57f637
|
Added IsNil function to assert to Object or ItemCollection before checking for nil values in Item interface
|
2021-02-02 14:18:16 +01:00 |
|
Marius Orcsik
|
15ac5c20c7
|
Updated OnX functions to apply the function on an item collection if that's what's being passed to it
This still has the downside that the collection might contain different types of objects
but I can't think of a better way to do it at the moment
|
2021-01-31 13:30:40 +01:00 |
|
Marius Orcsik
|
22a1b093fa
|
Allow InReplyTo to be a single item, not always an item collection
Fix tests
|
2020-12-30 14:19:02 +01:00 |
|
Marius Orcsik
|
3cc5090015
|
Add test for unmarshaling object without type
Fix existing tests
|
2020-12-30 13:31:37 +01:00 |
|
Marius Orcsik
|
9fa2cdc2fc
|
Fix deepEquals to take into account comparisons of values that can be coerced to basic types
|
2020-12-30 13:21:07 +01:00 |
|
mariusor
|
e34990d729
|
Making the Content type be an alias for []byte
|
2020-08-27 16:59:27 +02:00 |
|
MariusOr
|
02bc61cc17
|
Updating to a LangVal specific type for LangRefValues
This allows us to switch from storing strings to plain byte slices
|
2020-08-25 13:45:52 +02:00 |
|
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 |
|