Marius Orcsik
|
3cbadce5c6
|
Moved the UnmarshalJSON method to the create file
|
2018-09-06 16:28:36 +02:00 |
|
Marius Orcsik
|
0ab6a50f4e
|
Improvements to recipients deduplication
|
2018-09-06 16:07:45 +02:00 |
|
Marius Orcsik
|
b03dace2f1
|
Add LikeActivityNew initializer modeled after CreateActivityNew
Added tests for LikeActivityNew
|
2018-09-06 15:42:54 +02:00 |
|
Marius Orcsik
|
3ba813cb2b
|
Add RecipientsDeduplication for Like Activity
|
2018-09-06 15:41:53 +02:00 |
|
Marius Orcsik
|
3fa0135061
|
Re-enable some tests assertions
|
2018-09-06 15:41:18 +02:00 |
|
Marius Orcsik
|
85ce64a6ea
|
Add case for CreateActivity that receives an IRI as Actor
|
2018-09-06 15:40:47 +02:00 |
|
Marius Orcsik
|
0e78701d26
|
Have a mixed Context object.
It can be represented as a simple string value, array of strings and/or of object pairs
|
2018-09-05 10:38:05 +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
|
0c6b4c5c6f
|
Add an Collection() method to return the underlying type
|
2018-09-01 11:54:52 +02:00 |
|
Marius Orcsik
|
40e64fd3fd
|
Add an Actor() method to return the underlying type
|
2018-09-01 11:54:17 +02:00 |
|
Marius Orcsik
|
017c064ac8
|
Changes to mocks
|
2018-08-31 17:58:07 +02:00 |
|
Marius Orcsik
|
b28ba343ed
|
Fixed unmarshalToAPOject and getAPItem[s] functionality
This is one step closer to generic AP Unmarshal based on Type
|
2018-08-31 17:57:16 +02:00 |
|
Marius Orcsik
|
1f457f7213
|
Added InReplyTo and To unmarshalling for Object
|
2018-08-31 17:56:18 +02:00 |
|
Marius Orcsik
|
c58c5452e6
|
Modified Create activity Unmarshal and associated functionality
|
2018-08-31 17:55:41 +02:00 |
|
Marius Orcsik
|
352298aa7c
|
Show values when possible when failing deep equality
|
2018-08-31 17:52:43 +02:00 |
|
Marius Orcsik
|
3aee6f0f76
|
Improve NaturalLanguageValue.UnmarshalJSON function to use jsonparser
|
2018-08-31 13:40:42 +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
|
aca7b90c04
|
Revert "We didn't want collections, but Object arrays"
We really want collections according to the ActivityStreams spec
This reverts commit ea3b4d64fc .
|
2018-08-15 11:05:36 +02:00 |
|
Marius Orcsik
|
ea3b4d64fc
|
We didn't want collections, but Object arrays
|
2018-08-14 22:37:05 +02:00 |
|
Marius Orcsik
|
5e87858568
|
Modified Replies property to implement CollectionInterface
Added Replies to unmarshalling
|
2018-08-14 22:31:06 +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
|
df4429ff16
|
Fix the marshalling of @context
Add some description to the logic we're using
|
2018-08-06 16:51:44 +02:00 |
|
Marius Orcsik
|
b6ec84c634
|
Renamed func type
|
2018-08-06 15:26:50 +02:00 |
|
Marius Orcsik
|
1419759f28
|
Improving @context to support marshalling to string/map/array of maps
|
2018-08-06 15:26:20 +02:00 |
|
Marius Orcsik
|
e8c286814e
|
Return IRIs if incoming json value for a property is url like
|
2018-08-06 13:10:34 +02:00 |
|
Marius Orcsik
|
c76d5dd269
|
Use constant for empty Term value
|
2018-08-06 13:09:38 +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
|
c5483e5997
|
Adding mediatype to object unmarshalling
|
2018-08-05 16:33:51 +02:00 |
|
Marius Orcsik
|
ab11b36979
|
Improvement towards ensuring we implement a type of unmarshaller before trying it
|
2018-08-05 16:27:39 +02:00 |
|
Marius Orcsik
|
295a299ccc
|
Revert from using unmarshalToAPObject in loading collection items
|
2018-08-05 16:20:26 +02:00 |
|
Marius Orcsik
|
716081ff13
|
Added generator to object unmarshal
|
2018-08-05 15:25:54 +02:00 |
|
Marius Orcsik
|
fb363aa377
|
Improve collection unmarshalling
|
2018-08-05 13:54:01 +02:00 |
|
Marius Orcsik
|
e5bc4e644c
|
Improve getAPObjectByType to return ObjectOrLink
|
2018-08-05 13:53:29 +02:00 |
|
Marius Orcsik
|
a3a8044267
|
Make all activities implement ObjectOrLink
|
2018-08-05 13:52:40 +02:00 |
|
Marius Orcsik
|
7643c4abdc
|
Make the hack for marshaling with context even uglier
Test if marshalled object is a payloadWithContext and only replace in
output if it is.
|
2018-08-04 13:20:24 +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
|
5a2c4b51dd
|
Making some tag related functionality exportable
Replacing global package var Context with WithContext().Marshal()
|
2018-07-31 23:24:33 +02:00 |
|
Marius Orcsik
|
43573f7d36
|
Exporting tag related functionality
|
2018-07-26 10:44:28 +02:00 |
|
Marius Orcsik
|
55205ca1d7
|
Fix coverage generation
|
2018-07-25 13:07:50 +02:00 |
|
Marius Orcsik
|
0eedce953c
|
Fix error regarding output specifier
|
2018-07-25 12:52:07 +02:00 |
|
Marius Orcsik
|
9317dd12c7
|
Force install of jsonparser before activitypub tests
|
2018-07-25 12:35:41 +02:00 |
|
Marius Orcsik
|
b4baafa9f3
|
Fix Outbox test
|
2018-07-25 12:34:36 +02:00 |
|
Marius Orcsik
|
c81b23876a
|
Use CollectionInterface as types for Actor collections
|
2018-07-25 12:13:55 +02:00 |
|
Marius Orcsik
|
51f73c2cba
|
Fix failing test regarding ObjectID
|
2018-07-25 11:57:49 +02:00 |
|
Marius Orcsik
|
a5dd932a24
|
Add go modules support
|
2018-07-25 11:56:05 +02:00 |
|
Marius Orcsik
|
8038688be4
|
Making []Item and URI/IRI structs conform to ObjectOrLink
|
2018-07-25 11:54:12 +02:00 |
|