Commit graph

28 commits

Author SHA1 Message Date
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
d507b72a7a
Added UpdateActivity functionality 2018-10-02 11:22:38 +02:00
Marius Orcsik
e4c5a7ca10
Added DislikeActivityNew convenience func 2018-09-06 21:54:00 +02:00
Marius Orcsik
3cbadce5c6
Moved the UnmarshalJSON method to the create file 2018-09-06 16:28:36 +02:00
Marius Orcsik
3ba813cb2b
Add RecipientsDeduplication for Like Activity 2018-09-06 15:41: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
c58c5452e6
Modified Create activity Unmarshal and associated functionality 2018-08-31 17:55:41 +02:00
Marius Orcsik
3316087ffe
Change Activity.Actor property to be ObjectOrLink interface 2018-08-31 13:40:02 +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
a3a8044267
Make all activities implement ObjectOrLink 2018-08-05 13:52:40 +02:00
Marius Orcsik
7a2ce46e04
Refactored GetID to allow it to return nil 2018-07-25 11:47:03 +02:00
Marius Orcsik
4dc584b0d4
Added UnmarshalJSON methods for some types
Add some tests
2018-07-24 23:11:08 +02:00
Marius Orcsik
57dab0cb45
More implementations for IsLink and GetType 2018-07-20 18:28:26 +02:00
Marius Orcsik
2183a1accc
Adding IsObject and GetID to Like and Dislike 2018-07-20 18:16:51 +02:00
Marius Orcsik
fa5b0e2012
Corrected some wrong doc comments 2018-07-18 18:18:19 +02:00
Marius Orcsik
978985644e
Refactored how the repo looks 2018-07-06 12:48:04 +02:00
Marius Orcsik
e9a663c14e
Moving the two packages to src folder 2017-09-30 22:21:51 +02:00
Marius Orcsik
eb4df3b38a
Some reordering of things 2017-09-16 19:53:11 +02:00
Marius Orcsik
a5b9b99af7
Some updates to NewActivity and NewIntransitiveActivity 2017-09-15 18:11:31 +02:00
Marius Orcsik
dfbe432662
Used go fmt on the code 2017-09-12 22:37:34 +02:00
Marius Orcsik
b078413f1b
Remove omitempty from jsonld marshalling options, as it apparently doesn't take it into account 2017-09-12 19:24:28 +02:00
Marius Orcsik
baa209cfd0
Adding instantiation functions for all types of activities 2017-09-12 18:53:41 +02:00
Marius Orcsik
5c9d5bdd84
Small fixes 2017-09-12 17:46:43 +02:00
Marius Orcsik
b57f8c5e42
Added all properties from activity vocabulary docs with comments and jsonld hints 2017-09-12 17:28:57 +02:00
Marius Orcsik
d2d853feed
Move files to activitypub package 2017-09-12 10:31:45 +02:00
Renamed from activity.go (Browse further)