Commit graph

496 commits

Author SHA1 Message Date
Marius Orcsik
b3a4fef49a
Fixed the test value for last failing test 2019-12-03 20:12:47 +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
72a9ade82d Add 'streams/' from commit 'f968addfe0e35bbee21ed1233ecacf65391e3f59'
git-subtree-dir: streams
git-subtree-mainline: 0ad2174ed0
git-subtree-split: f968addfe0
2019-12-03 16:33:20 +01:00
Marius Orcsik
f968addfe0
Modified GetID method to not return a pointer
ObjectID type has now a IsValid method
2019-12-03 16:26:43 +01:00
Marius Orcsik
23227e2552
Removed duplicated tests as the types are aliases 2019-12-03 16:26:07 +01:00
Marius Orcsik
3a58b1d8b6
Adding collection types to ToObject
Using Flatten for Object.Replies normalization
2019-12-03 16:15:10 +01:00
Marius Orcsik
1fcca5958e
Restructured the Collection,CollectionPage,OrderedCollection,OrderedCollectionPage types to be stand-alone
Moved functionality to their own files
2019-12-03 16:05:39 +01:00
Marius Orcsik
fa6ec9411c
Making the Mention type an alias for Link 2019-12-03 15:33:20 +01:00
Marius Orcsik
8b835611d5
Restructured the Activity,IntransitiveActivity,Question types to be stand-alone
Moved functionality to its own file
2019-12-03 15:33:00 +01:00
Marius Orcsik
52e8c9c266
Restructured the Tombstone object to be stand-alone
Moved functionality to its own file
2019-12-03 15:07:00 +01:00
Marius Orcsik
921185b572
Restructured the Relationship object to be stand-alone
Moved functionality to its own file
2019-12-03 13:45:06 +01:00
Marius Orcsik
fa60a7c223
Restructured the Profile object to be stand-alone
Moved functionality to its own file
2019-12-03 13:36:05 +01:00
Marius Orcsik
a24a4f1386
Some last bits of Place functionality moved to the proper place 2019-12-03 13:34:13 +01:00
Marius Orcsik
cb209424b3
Grouped object methods around the type definition 2019-12-03 13:24:10 +01:00
Marius Orcsik
fd4fc76679
Added UnmarshalJSON for Place
Changed some properties to float64 and int64 types
2019-12-03 13:23:44 +01:00
Marius Orcsik
1e4cc7c841
Restructured the Place type to be independent
Moved functionality related to it to separate file
2019-12-03 13:05:11 +01:00
Marius Orcsik
cadebc535e
Move GetType function to ActivityObject interface 2019-12-03 12:51:29 +01:00
Marius Orcsik
dbd5b1175e
Renamed LinkOrURI interface 2019-12-03 12:48:25 +01:00
Marius Orcsik
a70c8f6f6b
Use some unsafe.Pointer some specific Activity and Object types 2019-12-03 12:47:27 +01:00
Marius Orcsik
0ad2174ed0
Extending usage of OnXXX functions to cover ItemCollections
Updated activitysatreams package
2019-12-01 19:49:52 +01:00
Marius Orcsik
495abe28e0 Add more support for Item be an ItemCollection at the same time 2019-12-01 19:47:31 +01:00
Marius Orcsik
7b9328863c Make all compatible activities types be Activity and IntransitiveActivity 2019-12-01 19:36:46 +01:00
Marius Orcsik
8982b3f40a Add IsCollection function to all base objects 2019-12-01 19:35:08 +01:00
Marius Orcsik
88e9eefd40
Updated activitystreams package 2019-12-01 16:58:49 +01:00
Marius Orcsik
d82e449e14 Set type of InReplyTo as Item 2019-12-01 16:56:35 +01:00
Marius Orcsik
ffe22ebbac
Updated activitystreams package 2019-11-30 10:18:35 +01:00
Marius Orcsik
65707fee23
Updated go-ap packages 2019-11-30 10:18:34 +01:00
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