Commit graph

518 commits

Author SHA1 Message Date
Marius Orcsik
c4bfc38e75 Fixing unmarshaling an Item type property to an ItemCollection if it holds an array
Adding some tests for it
2019-11-30 10:06:39 +01:00
Marius Orcsik
f333dd1786
Allow unmarshaling of properties of Item type from json arrays 2019-11-29 19:39:38 +01:00
Marius Orcsik
95f184fb4c Updated jsonld package 2019-11-24 12:56:51 +01:00
Marius Orcsik
24193a9460 Add explicit method for cleaning BCC and Bto properties
As part of the HasRecipients interface
2019-11-24 10:59:34 +01:00
Marius Orcsik
332da76705 Removed automated BCC and Bto sanitation when calling Recipients 2019-11-24 10:06:40 +01:00
Marius Orcsik
b8c741819f Revert skipping marshalling for BCC and Bto fields
I need to find a different solution for it
2019-11-24 09:28:32 +01:00
Marius Orcsik
a27ee75f67 Add a new jsonld tag to tell the marshaler to skip bto and bcc properties 2019-11-23 20:36:16 +01:00
Marius Orcsik
499189f114
Add Contains method on iri, to determine if an IRI is the root of another 2019-11-20 11:42:33 +01:00
Marius Orcsik
74c08cb693
The unescape function 2019-11-18 19:41:39 +01:00
Marius Orcsik
f08f14bc2b
Use IRI.Equals wherever we can 2019-11-18 17:15:00 +01:00
Marius Orcsik
911738e9f0
Using new Equals method for IRIs.Contains 2019-11-18 16:41:31 +01:00
Marius Orcsik
e6341caa81
Added iri.Equals method 2019-11-18 16:39:28 +01:00
Marius Orcsik
6e7d4dc4ff
Fixed sharedInbox documenation 2019-11-14 16:36:00 +01:00
Marius Orcsik
794d2e1929
Fixing some tests 2019-10-15 22:04:15 +02:00
Marius Orcsik
6b0328f151
Updated activitystreams package 2019-10-13 23:40:43 +02:00
Marius Orcsik
8a9ddc74a4 Removed Undo as a separate type 2019-10-13 23:32:32 +02:00
Marius Orcsik
0ce2856b10
Updated activitystreams package 2019-10-11 13:20:12 +02:00
Marius Orcsik
921736699c
Return nil in the case of missing activitypub Type property from the json payload 2019-10-11 13:19:26 +02:00
Marius Orcsik
d33906103c
Fixed linking to wrong project coverage image 2019-10-10 15:31:00 +02:00
Marius Orcsik
89ca16b23d
Updated go-ap packages 2019-10-07 13:12:10 +02:00
Marius Orcsik
6e2d1b5aaf
Fixed loading NaturalLanguageValues from a json encoded byte array 2019-10-07 13:11:06 +02:00
Marius Orcsik
16f08e747d
Updated activitystreams package 2019-10-04 17:29:26 +03:00
Marius Orcsik
aa26e536d9
Small improvements to how we extract NaturalLanguageField from JSON 2019-10-04 17:27:22 +03:00
Marius Orcsik
ccea8c926d
Adding tests for NaturalLanguageValues marshalling
Encoding it as a string just when it has a nil value ref
2019-10-04 10:27:57 +03:00
Marius Orcsik
2745a3c694
Moved shares and likes to object struct, as per the spec 2019-09-28 10:30:01 +03:00
Marius Orcsik
ed06508b7b
Sigh, local object/actor structs have just become more complicated 2019-09-27 16:35:20 +03:00
Marius Orcsik
bd541cc3e6
Updated go-ap packages 2019-09-24 14:41:26 +03:00
Marius Orcsik
06f0682888
Using bytes.ReplaceAll for replacing escape sequences 2019-09-24 14:29:49 +03:00
Marius Orcsik
c5b917d214
Updated activitystreams package 2019-09-24 10:10:14 +03:00
Marius Orcsik
0d64921dc6
Improved setting headers for get and post requests 2019-09-24 10:05:55 +03:00
Marius Orcsik
c69bcfeaeb
Fixed errors resulting from using local Object types 2019-09-24 10:05:14 +03:00
Marius Orcsik
0ff0c8c86f
Use generic Object and Actor AP types for returning local Object and Actor struct type 2019-09-24 10:03:35 +03:00
Marius Orcsik
61e8d43a6c
Fix forgotten activitystreasm.Objects in functions signatures passed to ToObject 2019-09-24 09:58:10 +03:00
Marius Orcsik
83e6033c7d
Fix assigning zero length item collections to CC, BCC and Tag properties 2019-09-24 09:51:56 +03:00
Marius Orcsik
0219834966
Fix test that was relying on double escaping of \n 2019-09-24 09:51:21 +03:00
Marius Orcsik
01aeb089f6
Fix double escaping of escape values when unmarshalling 2019-09-24 08:54:40 +03:00
Marius Orcsik
12583f00f4
Explicitly initialize ItemCollection variables 2019-09-23 16:35:00 +02:00
Marius Orcsik
239d1564f8
Improvements to NaturalLanguageValues Unmarshaling 2019-09-23 16:34:14 +02:00
Marius Orcsik
650ef7b49b
Making the InReplyTo be an explicit item collection
Use jsonld.Marshal for encoding natural language values
2019-09-20 15:14:21 +02:00
Marius Orcsik
da75235f0f
Simplified GetItemByType function 2019-09-09 20:49:19 +02:00
Marius Orcsik
334d80b393
Added ToObject/OnObject pairs for local Object 2019-09-09 20:21:45 +02:00
Marius Orcsik
2ed426166c
Simplified GetItemByType function 2019-09-09 20:21:14 +02:00
Marius Orcsik
44f8caf811
Corrected hinted ToPerson comment 2019-09-09 20:20:26 +02:00
Marius Orcsik
c86afa1fbe
Use new go-ap packages 2019-09-09 16:16:50 +02:00
Marius Orcsik
68a5740255
Use new jsonld package 2019-09-09 16:14:31 +02:00
Marius Orcsik
0f6ac4598a
Gofmt 2019-09-09 16:13:59 +02:00
Marius Orcsik
75e0ad45ba
Updated OnObject to run correctly for Activity/Person objects 2019-08-29 16:19:11 +02:00
Marius Orcsik
7994fa0b35
Improving On*Collection functions to accept *CollectionPage objects 2019-08-29 12:51:23 +02:00
Marius Orcsik
0af226c689
Allow OnObject function to run on all types of objects 2019-08-23 21:52:03 +02:00
Marius Orcsik
f1451be98f
Updated the go-ap packages 2019-08-23 21:51:30 +02:00