tsmethurst
bffb780f1b
go fmt ./...
2021-09-26 11:32:43 +02:00
tsmethurst
511885d31b
regenerate mock
2021-09-26 11:32:33 +02:00
tsmethurst
d35c464c58
add InboxForActor func
2021-09-26 11:32:22 +02:00
tsmethurst
6e8450d07d
add convenience func for removing entry from slice
2021-09-26 11:32:13 +02:00
Cory J Slep
e0de0863dc
Merge pull request #147 from BenLubar-PR/host-header
...
ensure host header is set
2021-04-26 21:46:15 +02:00
Ben Lubar
042ba2ce5e
ensure host header is set
2021-04-07 10:22:27 -05:00
komarov
5e8c5c0bb8
cosmetic: fix some copy-pasted names
2021-02-28 12:39:23 +01:00
Cory Slep
472d90163f
Add PostInboxScheme and PostOutboxScheme to Actor
2020-12-13 23:45:52 +01:00
Cory Slep
be7f23bde7
Return ErrNotFound when handler retrieves no data
2020-12-13 23:32:23 +01:00
Cory Slep
6cbfb30afa
Support custom schemes for handlers
...
This allows clients to serve data over HTTP or HTTPS, which should only
be done for development purposes.
2020-12-13 23:25:58 +01:00
Cory Slep
c7bbac61b6
Update READMEs and CHANGELOG for v1.0.0
2020-07-09 17:34:37 +02:00
Cory Slep
c2285ceec2
Rename Callbacks to disambiguate between S2S & C2S
2020-07-06 19:41:49 +02:00
Cory Slep
ee53bc0369
Change delegate actor to use upper 'ID', fix tests
2020-07-05 22:37:26 +02:00
Sevki
7c20a89a61
Update database.go
2020-07-05 20:07:47 +01:00
Sevki
a8fb705a22
Merge branch 'master' into patch-1
2020-07-05 20:06:55 +01:00
Cory Slep
e17e28bddb
Remove unused jsonLDContext constant
2020-07-05 20:56:10 +02:00
Cory Slep
107afb6f17
Avoid a byte copy when delivering a HTTP request
...
Added tests for the HTTP sig transport.
2020-07-05 17:06:52 +02:00
Cory Slep
c3b24964d4
Add unit tests for the AS handler
2020-07-05 15:54:31 +02:00
Cory Slep
311ab07a5c
Use equal bytes function in tests when asserting
2020-07-05 15:53:42 +02:00
Cory Slep
18fcfcf812
Add tests for wrapping in create.
2020-07-05 15:22:18 +02:00
Cory Slep
78c96972b2
Clear sensitive fields by setting nil instead of removing
2020-07-05 15:22:00 +02:00
Cory Slep
fa448c7559
Improve bto & bcc stripping before delivery.
...
Added unit tests covering the delivery call.
2020-07-05 14:10:33 +02:00
Cory Slep
5ad09ded3e
Add unit tests for federated block
2020-07-04 18:30:17 +02:00
Cory Slep
a8662e547a
Add unit tests for federated undo
2020-07-04 18:25:35 +02:00
Cory Slep
d003641810
Add unit tests for federated announce
2020-07-04 17:47:17 +02:00
Cory Slep
c58f23bd17
Add unit tests for federated like
2020-07-04 10:41:42 +02:00
Cory Slep
72022bfe14
Add unit tests for federated remove
2020-07-04 10:00:48 +02:00
Cory Slep
4c60792b09
Add unit tests for federated add
2020-07-04 09:42:25 +02:00
Cory Slep
110d8bd3e5
Add unit tests for federated follows
2020-07-03 18:44:52 +02:00
Cory Slep
8af6ed9d4f
Add unit tests for federated deletes
2020-07-03 18:06:52 +02:00
Cory Slep
a1ac83aee8
Add unit tests for federated updates
2020-07-03 17:50:08 +02:00
Cory Slep
c994dc39f0
Add tests and fix shadowing bug in Accept handling
2020-07-02 23:03:01 +02:00
Cory Slep
d11b96b9ed
Implement 18 more tests in the federation callbacks.
2020-07-02 22:10:35 +02:00
Cory Slep
f2a497bdc2
Fix broken unit tests.
2020-07-02 21:15:02 +02:00
Cory J Slep
d6627c1750
Merge pull request #132 from Sigafoos/bugfix/s_inbox_outbox
...
Replace 'inbox' with 'outbox' when appropriate
2020-05-26 08:08:33 +02:00
Cory J Slep
91fc2338f2
Merge pull request #135 from kissen/fix/likecallback
...
Fix: Use correct database method to get actor IRI
2020-05-26 08:06:34 +02:00
Andreas Schärtl
2efc3220fa
Fix: Use correct database method to get actor IRI
2020-04-01 15:02:36 +02:00
Andreas Schärtl
01a23ee4d1
Fix: Avoid nil-derferences when dealing with Create side-effects
2020-04-01 14:50:36 +02:00
Andreas Schärtl
5f6df51cb8
Fix: Avoid nil-dereferences when wrapping object in Create activity
2020-04-01 14:50:34 +02:00
Sevki
e7c3ac2533
Id => ID
...
`Id` is causing the linters to complain when implementing the db interface.
from the go project https://github.com/golang/go/wiki/CodeReviewComments#initialisms
> This rule also applies to "ID" when it is short for "identifier" (which is pretty much all cases when it's not the "id" as in "ego", "superego"), so write "appID" instead of "appId".
2020-03-20 15:37:09 +00:00
Dan Conley
f502dfd041
Replace 'inbox' with 'outbox' when appropriate
...
As I was ~~wholesale copying~~ using the `database` interface definition
as a reference while creating my Federating implementation I noticed
some instances of a variable being named `inboxIRI` in an outbox method.
2020-02-28 21:55:38 -05:00
Cory Slep
de06e3ccdc
Lenient delivery to followers.
...
When delivering content, do not fail the whole process if a single
recipient is unavailable. Instead, skip delivering to that individual
actor.
2020-02-04 22:33:52 +01:00
Cory Slep
e8a7301360
Make caller of handlers responsible for authorization
2019-11-11 00:43:52 +01:00
Cory Slep
0acf044b02
Merge remote-tracking branch 'refs/remotes/origin/master'
...
Pretty sure I just merged new code that would make Ben cry.
2019-10-21 22:22:30 +02:00
Cory Slep
82ca5994b4
Generate the new code update syntax.
...
This is a breaking change.
Sorry.
But it is for the long-term health.
Better now, than next year.
Expect a major version bump for next release.
2019-10-21 22:12:44 +02:00
Ben Lubar
3ff5423014
fix linter warnings.
2019-10-19 17:43:21 -05:00
Cory Slep
d87793a589
Add context.Context as an output to Authorize interfaces
2019-09-14 16:35:48 +02:00
Cory Slep
224629ca54
No longer manually set Digest header
2019-09-13 12:31:00 +02:00
Cory Slep
92ecc4f524
Update to latest httpsig API
2019-09-13 12:18:49 +02:00
Cory Slep
351ebe64b7
Migrate serialize from pub to streams; export
2019-08-09 17:29:08 +02:00