Cory Slep
c2285ceec2
Rename Callbacks to disambiguate between S2S & C2S
2020-07-06 19:41:49 +02:00
Cory Slep
0430970bd3
Add generated forgefed vocabulary
2020-07-05 22:38:06 +02:00
Cory Slep
ee53bc0369
Change delegate actor to use upper 'ID', fix tests
2020-07-05 22:37:26 +02:00
Cory Slep
574f22607b
Add forgefed vocabulary to go generate command
2020-07-05 21:58:08 +02:00
Cory J Slep
2da4dc1d6e
Merge pull request #136 from BenLubar-PR/forgefed
...
Implement ForgeFed vocabulary.
2020-07-05 21:56:36 +02:00
Cory Slep
fbb513751a
Merge branch 'master' of https://github.com/go-fed/activity
2020-07-05 21:47:43 +02:00
Cory Slep
a3a3f48d19
Regenerate vocabular with source property
2020-07-05 21:47:30 +02:00
Cory Slep
2d143b225a
Add source property to activitystreams OWL file
2020-07-05 21:47:08 +02:00
Cory Slep
fc8e2d8c30
Add toot spec to go generate command
2020-07-05 21:46:37 +02:00
Cory J Slep
415c3275ef
Merge pull request #133 from sevki/patch-1
...
NewId => NewID
2020-07-05 21:22:45 +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
acc84125fa
Run go mod tidy
2020-07-05 20:59:37 +02:00
Cory Slep
e17e28bddb
Remove unused jsonLDContext constant
2020-07-05 20:56:10 +02:00
Cory Slep
f4f19b61b3
Update astool's README
2020-07-05 20:37:26 +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
95bfff952e
Merge pull request #128 from BenLubar-PR/toot-grammar
...
Toot grammar
2020-05-26 08:08:58 +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
Cory J Slep
ceedc04ee1
Merge pull request #134 from kissen/master
...
Fix nil derefences
2020-05-26 08:05:49 +02:00
Cory J Slep
28e35e3541
Merge pull request #137 from BenLubar-PR/generate
...
add file to allow `go generate` to update generated code
2020-05-26 08:04:50 +02:00
Ben Lubar
908aa3e9ae
add file to allow `go generate` to update generated code
2020-05-09 12:34:32 -05:00
Ben Lubar
aa98aaa1cf
Implement ForgeFed vocabulary.
...
Caveat: the "description" property is probably wrong; it should match the definition of the ActivityPub(!) "source" property which is currently not in go-fed.
2020-05-08 19:09:02 -05: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
Ben Lubar
b27393e8dd
add toot-namespaced types and objects except toot:focalPoint for #122
2019-12-04 16:30:01 -06:00
Ben Lubar
ffcaafbd9f
regenerate streams package with no changes to avoid messy diffs
2019-12-04 16:30:01 -06:00
Cory Slep
e8a7301360
Make caller of handlers responsible for authorization
2019-11-11 00:43:52 +01:00
Cory Slep
b977c30ce5
Add apcore as a client: toot own horn
2019-10-23 22:29:48 +02:00