Commit graph

29 commits

Author SHA1 Message Date
Marius Orcsik
648b2cf097
Added generics compatible interface type constraints for Objects, Collections, Activities, Actors using type unions 2021-11-12 20:05:34 +01:00
mariusor
a8126635d3 Fix some linting warnings 2021-11-12 19:10:31 +01:00
mariusor
5064eea988 Go fmt'ed files 2021-11-12 18:27:28 +01:00
Marius Orcsik
e26b856fcc
Use fastjson properly 2021-08-15 13:41:01 +02:00
Marius Orcsik
f09fdb0b8b
Disabled all GobEncoding/Decoding and BinaryMarshal/Unmarshal functionality 2021-04-02 13:52:04 +02:00
Marius Orcsik
ac3d908e7b
Adding placeholder Marshal/UnmarshalBinary and GobEncode/Decode 2021-03-14 19:39:49 +01:00
Marius Orcsik
a65a3e9048
Renamed internal functions used for JSON buffer write
This is done to ensure we're not overlapping with the future gob functionality
2021-03-14 18:31:13 +01:00
mariusor
247f1fbf22 Removed flatten functionality from here 2021-01-13 10:52:50 +01:00
Marius Orcsik
656c40c1a7
Adding a default case for type conversion using the reflect package 2020-07-16 21:54:46 +02:00
Marius Orcsik
a84e349e66
Apparently it's a spec requirement to remove an actor from the
recipients list.

Revert "Don't remove an activity's actor from the recipients, if specifically placed there"

This reverts commit fef2c33999.
2020-07-12 20:42:56 +02:00
Marius Orcsik
fef2c33999
Don't remove an activity's actor from the recipients, if specifically placed there 2020-07-12 20:42:05 +02:00
Marius Orcsik
57c015a8e9
Refactored types a bit 2020-06-30 13:35:04 +02:00
Marius Orcsik
342a261a17
Improved ItemCollectionDeduplication
More tests for object equality method
2020-05-15 15:18:20 +02:00
Marius Orcsik
fac868b7c2
Added functionality for checking if objects are equal 2020-05-07 16:49:43 +02:00
Marius Orcsik
0a2f998222
Make activitypub types comparisons be case insensitive 2020-03-26 11:38:19 +01:00
Marius Orcsik
46100f4f82
Cleanup an activity's object/actor/target BCC, BTo if they're loaded as objects 2020-02-09 08:32:57 +01:00
Marius Orcsik
b912910ef1
Refactoring loading of object/intransitive activity/activity types from json byte array 2019-12-21 11:05:38 +01:00
Marius Orcsik
6fe2b97669
Refactored a couple of the writeX encoding functions 2019-12-21 10:44:32 +01:00
Marius Orcsik
6bb34603e9
Refactored marshaling and removing bytes.Buffer in favor of a simple byte slice 2019-12-19 17:05:12 +01:00
Marius Orcsik
4599863fae
Added Activity/IntransitiveActivity/Question Json marshaling and tests 2019-12-19 14:45:24 +01:00
Marius Orcsik
67aa065f9f
Some other places where we removed Object from names of things 2019-12-05 19:16:48 +01:00
Marius Orcsik
b89c9ee68c
Renamed ObjectID to ID 2019-12-05 19:02:15 +01:00
Marius Orcsik
79e39d3c2b
Added the Object related Source and collection properties 2019-12-03 20:50:26 +01:00
Marius Orcsik
e1942ec531
Fixing some tests 2019-12-03 19:59:20 +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
3c56372a15
Removed Activity based things, as they aren't different from the ActivityStreams ones 2019-02-18 15:50:26 +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
d2d853feed
Move files to activitypub package 2017-09-12 10:31:45 +02:00
Marius Orcsik
85e7725ff0
Moved activity struct and functions to their own file 2017-09-11 23:12:28 +02:00