Commit graph

889 commits

Author SHA1 Message Date
mariusor
2d4ccbceb8
Improved documentation on some OnXXX functions 2022-03-22 11:39:01 +01:00
Marius Orcsik
fd0bfa95ef
Updated activitypub package with Normalize functionality 2022-03-20 15:17:38 +01:00
Marius Orcsik
109a45e9a0
Added a ItemCollection.Normalize method
It allows us to return an the first element in a collection if there is just one
2022-03-20 15:15:07 +01:00
Marius Orcsik
b3d7808579
Updated to go1.18 2022-03-19 20:38:21 +01:00
Marius Orcsik
0b791c7c7f
Fix CI pipeline 2022-03-19 20:30:00 +01:00
Marius Orcsik
79c0987785
Fix gob encoding the URL 2022-03-19 20:25:59 +01:00
Marius Orcsik
93a9596849
Using go1.18 and adding some interface types that can be used for generics 2022-03-19 20:14:56 +01:00
mariusor
b284abadbf
Updated activitypub package 2022-03-18 14:04:34 +01:00
mariusor
4a60b3c358
Some formatting 2022-03-18 14:02:09 +01:00
mariusor
826f263bfe
Added 'integration' tests to the test run 2022-03-16 11:51:55 +01:00
Marius Orcsik
071af346d1
Updated activitypub package 2022-03-13 11:28:55 +01:00
Marius Orcsik
5beb65d934
Use the jsonld content type from the item and collection handlers 2022-03-13 11:28:31 +01:00
Marius Orcsik
8eefc7992f
Fix json encoding for question.anyOf 2022-03-13 11:25:30 +01:00
Marius Orcsik
e96b926220
Don't try to output an intransitive activity's object 2022-03-12 09:37:12 +01:00
mariusor
79634f8f13
Update activitypub package with improved flatten function 2022-03-11 16:49:43 +01:00
mariusor
eed0561779
Fix flatting of intransitive activities
For the moment we don't flatten a Question's anyOf or oneOf properties
2022-03-11 16:47:56 +01:00
mariusor
05d6cb5ef7
Fix handling Intransitive activities
Output status 204 for intransitive activities and no content
2022-03-09 16:46:52 +01:00
Marius Orcsik
cc5a660078
Updated activitypub package 2022-03-06 13:38:51 +01:00
Marius Orcsik
d29b4fa0ae
Don't fail on properties that are missing when unmarshaling json 2022-03-06 13:34:18 +01:00
Marius Orcsik
f5091c21a7
Add content type header only if actually returning an activity's object 2022-03-06 13:25:59 +01:00
mariusor
9bb086e17a
Updated to new activitypub version 2022-03-01 16:24:24 +01:00
mariusor
16bd1c8aa0
Fix encoding actor.Streams property 2022-03-01 16:22:14 +01:00
mariusor
642daef8ea
Updated activitypub package 2022-01-28 12:55:34 +01:00
mariusor
c61421fde8
Change type of Actor.Streams to be just an item collection 2022-01-28 12:47:59 +01:00
mariusor
74d6e4ea8b
Updated activitypub package with full Gob encoding/decoding 2022-01-26 15:27:09 +01:00
mariusor
8f025c2e36
Saving place.Units as byte array instead of trying any encoding 2022-01-26 15:24:39 +01:00
mariusor
a14c77aac8
Added public key decoding 2022-01-26 15:21:11 +01:00
Marius Orcsik
fbee7c1426
Fix IRI.IsObject tests 2022-01-23 16:55:13 +01:00
Marius Orcsik
60a9d0c085
Making the activitypub.IsObject just try to type assert 2022-01-23 16:53:15 +01:00
Marius Orcsik
d7f2e55bea
Add some extra test cases to iri IsObject test 2022-01-23 16:51:10 +01:00
mariusor
01c8503de4
Update to activitypub package version with exported Gob functions 2022-01-14 16:27:10 +01:00
mariusor
7b062fcd1f
Simplified some of the gob encoding and decoding 2022-01-14 16:23:28 +01:00
mariusor
aff990b584
Check for pointers if when evaluating if an item is an IRI 2022-01-14 16:21:57 +01:00
mariusor
8d289001b1
Store IRIs as their underlying byte array when encoding using gob 2022-01-14 16:21:28 +01:00
Marius Orcsik
41f034c70c
Added exported GobEncode/GobDecode functions 2022-01-13 20:56:01 +01:00
mariusor
b36791f64c
Updated activitypub package with even more final gob encode/decode 2022-01-13 16:53:09 +01:00
mariusor
2647d68b45
Fix activity type tests 2022-01-13 16:51:14 +01:00
mariusor
7121931940
Finish the implementation of gob encode/decode for Item interface 2022-01-13 16:50:08 +01:00
mariusor
f1d125288a
Use the typer function variable instead of directly calling the default one 2022-01-13 16:44:44 +01:00
mariusor
72008812b1
Simplify the Type gob encode/decode 2022-01-13 16:44:04 +01:00
mariusor
d037a352cb
Update to activitypub package with complete gob encode/decode 2022-01-13 12:32:27 +01:00
mariusor
af0f5aa0ee
Adding gob encode/decode for place, profile, question, relationship, tombstone types 2022-01-13 12:22:34 +01:00
mariusor
3e9850f7d0
Adding gob encode/decode functionality for *Collection types 2022-01-12 18:57:45 +01:00
mariusor
80679b32e9
More gob decode types 2022-01-12 18:19:06 +01:00
mariusor
4792d825cd
Adding more gob encoding/decoding for specific object types 2022-01-12 17:51:04 +01:00
mariusor
da9b05373d
Move gob encode/decode to their respective separate files 2022-01-12 16:49:45 +01:00
mariusor
70cf14b80e
Adding some trial and error over recognized types for gob decoding an item's properties 2022-01-12 15:40:11 +01:00
mariusor
f283750ff6
Added gob Encode/Decode for IRIs 2022-01-12 15:39:08 +01:00
mariusor
fb7fbc1984
Use a specific type for IRI.GetType 2022-01-12 15:34:59 +01:00
Marius Orcsik
b49c3b9ec0
Adding gob encoding for Actors 2022-01-02 16:26:16 +01:00