Rob Loranger
ff2d3fc3d5
fixes issue #100 - can't follow from pubgate
...
this moves the unmarshaling of a remote actor out into a new helper which
accounts for the possibility of a context being a list or a single entity.
i.e. a string or an object.
basics tests are provided for both situations
also go fmt'd the file activitypub.go
2019-05-21 07:02:35 -07:00
Matt Baer
d8937e89a8
Make App struct public
2019-05-12 17:19:38 -04:00
Matt Baer
2942a6818e
Fix AP follower INSERT with SQLite
...
Previously the query would fail with "no such function: NOW"
Closes #56
2019-01-07 14:35:47 -05:00
Matt Baer
3ae45bc156
Fix spacing around copyright notices
2018-12-31 01:05:26 -05:00
Matt Baer
1274914207
Add copyright / license notices to .go files
2018-12-24 12:45:15 -05:00
Matt Baer
94badbc838
Only log ActivityPub info when debugging
2018-11-26 08:39:15 -05:00
Matt Baer
b58cb1e541
Fix Novel blog post order in feeds and outbox
2018-11-17 21:59:04 -05:00
Matt Baer
3595c8163c
Use Accept ID on blog's origin
...
instead of the requesting user's. This closes #16
2018-11-15 17:05:33 -05:00
Matt Baer
58d163d2e0
Properly handle failed AP requests
2018-11-14 18:30:24 -05:00
Matt Baer
ecac59bf62
Fix Accept IDs
...
Prepend with hash, not hyphen
This closes #16
2018-11-12 19:31:21 -05:00
Matt Baer
c996ae1cad
Add To and CC on Create activities
...
Part of #8
2018-11-11 13:11:01 -05:00
Matt Baer
393f6d6834
Add ID on Accept activities
...
Part of #8
2018-11-11 13:10:39 -05:00
Matt Baer
771d0a8d2f
Use hostname in AP requests' User-Agent header
2018-11-08 12:08:48 -05:00
Matt Baer
6dbf0c8764
Add ActivityPub components, routes, handlers
2018-11-08 01:28:08 -05:00