Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Federated following, starring, issues, forks, and pull requests #20391

Closed
wants to merge 94 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
d12fd43
Add Person and Repository ActivityPub endpoints
Jun 19, 2022
a7f32d3
Finish initial ForgeFed implementation
Jun 20, 2022
e090c95
Write a FEDERATION.md describing future Gitea federation features
Jun 21, 2022
24a462a
Delete the old example from FEDERATION.md
Jun 21, 2022
30a703c
Fix minor wording issue
Jun 22, 2022
e348477
Add some additional info about migrations to FEDERATION.md
Jun 26, 2022
786ee03
Merge remote-tracking branch 'upstream/main'
Jun 26, 2022
721b734
Merge remote-tracking branch 'upstream/main'
Jul 7, 2022
fa72294
Fix build errors and start working on constructing outbox activities …
Jul 7, 2022
18b4cd3
Don't track go.work files
Jul 7, 2022
8b354fe
Merge remote-tracking branch 'upstream/main'
Jul 10, 2022
d016dbb
Switch to using gitea.com/Ta180m/activitypub fork of the go-ap/activi…
Jul 11, 2022
79a59bd
Use a replace in go.mod to point to Ta180m/activitypub fork instead o…
Jul 11, 2022
1b39e39
Add basic implementation of federated commenting
Jul 11, 2022
63aa270
Initial implementation of federated pull requests
Jul 13, 2022
a63b2be
Merge remote-tracking branch 'upstream/main'
Jul 13, 2022
5671739
Big refactor: Improve inbox handling logic, move some IRI stuff to ir…
Jul 14, 2022
0609d71
Add more TODO notes
Jul 14, 2022
1b4cd98
Merge remote-tracking branch 'upstream/main'
Jul 14, 2022
b491a2e
Update FEDERATION.md with a more accurate description of federated is…
Jul 17, 2022
705706b
Generate person outbox for only repo creates and stars
Jul 17, 2022
f1577c2
Merge remote-tracking branch 'upstream/main'
Jul 17, 2022
48deb8e
Fix repo AP outbox path typo
Jul 17, 2022
08cb2d6
Fix typos in FEDERATION.md
Jul 17, 2022
c100b8e
Apply suggestions from code review
Jul 17, 2022
0925235
Fix federated following/unfollowing regression
Jul 20, 2022
6e10030
Merge remote-tracking branch 'upstream/main'
Jul 20, 2022
c8a8e1e
Check err in Follow() to avoid crash and don't check FederatedUserNew…
Jul 20, 2022
5196dcd
Check if httpsig keyID matches actor and attributedTo
Jul 20, 2022
85abd9c
Fix typo in follow.go
Jul 22, 2022
763f98b
Create user at /authorize_interaction?uri= endpoint
Jul 23, 2022
5da6b4f
Disable authorize_endpoint if federation is disabled
Jul 24, 2022
ab540d0
Create new federated users in reqsignature.go
Jul 24, 2022
bffb682
Fix a bunch of lint errors (still 10 more to fix 🙁)
Jul 24, 2022
30b431d
Set ap.ItemTyperFunc to correctly unmarshal JSON
Jul 25, 2022
38a687c
Replace GetID() with GetLink()
Jul 25, 2022
f0cded8
Start cleaning up fork.go
Jul 27, 2022
d909c97
Move models/forgefed to modules/forgefed
Jul 27, 2022
8e5621c
Merge remote-tracking branch 'upstream/main'
Jul 27, 2022
c94a891
Process Like activities for starring repos
Jul 27, 2022
71b2b4d
Implement FederatedRepoNew
Jul 27, 2022
fe8ef28
Merge remote-tracking branch 'upstream/main'
Aug 4, 2022
ecefb6a
Merge remote-tracking branch 'upstream/main'
Aug 10, 2022
0b97c6a
Cache remote user public keys
Aug 15, 2022
d945e6a
Start working on Ticket object endpoint implementation
Aug 15, 2022
6b73c09
Download avatar from URL and set it with user_service.UploadAvatar
Aug 15, 2022
6a6c6b3
Merge remote-tracking branch 'upstream/main'
Aug 19, 2022
27cda2f
Implement JSONLoad, To, and On functions for ForgeFed types
Aug 21, 2022
b3c065c
Refactor RepoInbox to use On functions instead of type assertions
Aug 21, 2022
18809f8
Make the frontend linter happy
Aug 22, 2022
b9dd4a2
Make revive linter happy
Aug 22, 2022
819e495
Make gofmt happy
Aug 22, 2022
1bc8e67
Fix linting errors (errcheck)
Aug 22, 2022
f1e61af
Fix another linting error
Aug 22, 2022
ee85f7d
Use the Repository AttributedTo to get owner IRI
Aug 22, 2022
c0efded
Fix typo for JSONUnmarshalerFn description comment
Aug 22, 2022
73284db
Add authorize_interaction case for Tickets
Aug 22, 2022
5ad0387
Add copyright to test file
Aug 22, 2022
2373b41
Add paginition to Person's outbox
Aug 22, 2022
45324e1
Add todo
Aug 22, 2022
2e957e7
Fix repository tests
Aug 22, 2022
ec1ffd6
Merge remote-tracking branch 'upstream/main'
anthowan Sep 5, 2022
f026988
Fix build errors
anthowan Sep 5, 2022
42b1bac
Merge remote-tracking branch 'upstream/main'
anthowan Sep 12, 2022
47229ea
Merge remote-tracking branch 'upstream/main'
anthowan Sep 15, 2022
f7dbbf7
Remove /integrations directory
anthowan Sep 15, 2022
117463b
Change Ta180m/activitypub to xy/activitypub
anthowan Sep 16, 2022
26f57be
Merge remote-tracking branch 'upstream/main'
anthowan Sep 22, 2022
379b9a7
Serve issues as ForgeFed tickets
anthowan Sep 23, 2022
f9d9019
Fix Comment permission checking
anthowan Sep 23, 2022
cbc2a97
Set isResolved to true for closed issues
anthowan Sep 29, 2022
e78dd69
Merge remote-tracking branch 'upstream/main'
anthowan Oct 18, 2022
f133e9c
Implement sending follow activities
anthowan Oct 21, 2022
5612130
Merge remote-tracking branch 'upstream/main'
anthowan Oct 27, 2022
69c1bdd
Merge remote-tracking branch 'upstream/main'
anthowan Nov 8, 2022
0cacdc3
More Ticket IRI processing to iri.go
anthowan Nov 11, 2022
f75ab80
make fmt
anthowan Nov 11, 2022
ca50224
Send out undo follow activity in UnfollowUser
anthowan Nov 12, 2022
20e8c64
Fix UnfollowUser addressing
anthowan Nov 12, 2022
19af0c9
Implement loading remote tickets
anthowan Nov 25, 2022
d22dab7
Add custom NotEmpty function to handle ForgeFed types
anthowan Nov 26, 2022
447650f
Remove @ from regex because idk what it was doing there in the first …
anthowan Nov 26, 2022
41e9a10
make fmt
anthowan Nov 26, 2022
fd4d0e7
Move AS object processing to routers/api/v1/activitypub, move AP tran…
anthowan Nov 27, 2022
2d74e4f
Delete fork code and move createPullRequest to create.go
anthowan Nov 27, 2022
c982b67
Set issue Index, not ID, when creating issues from an AS object
anthowan Nov 27, 2022
a666eef
Rewrite createPullRequest and add createPersonFromIRI
anthowan Nov 27, 2022
3f5f626
Fix AppSubURL -> AppURL typo
anthowan Nov 27, 2022
1066cfe
Implement commenting and fix lint errors
anthowan Nov 27, 2022
77896f1
Save issue IRIs when creating them from AS objects
anthowan Nov 27, 2022
3e690fb
Federated issue creation
anthowan Nov 27, 2022
f5a50ce
Add Note object endpoint
anthowan Nov 27, 2022
c64d3fa
Implement commenting on issues from Mastodon
anthowan Nov 27, 2022
439f675
Don't send emails to federated users
anthowan Nov 27, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'upstream/main'
anthowan committed Oct 18, 2022
commit e78dd699de4a182d66b5582ef00e6749b3e33011
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -86,7 +86,7 @@ require (
github.com/syndtr/goleveldb v1.0.0
github.com/tstranex/u2f v1.0.0
github.com/unrolled/render v1.5.0
github.com/urfave/cli v1.22.9
github.com/urfave/cli v1.22.10
github.com/valyala/fastjson v1.6.3
github.com/xanzy/go-gitlab v0.73.1
github.com/yohcop/openid-go v1.0.0
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
@@ -473,10 +473,10 @@ github.com/gliderlabs/ssh v0.3.5 h1:OcaySEmAQJgyYcArR+gGGTHCyE7nvhEMTlYY+Dp8CpY=
github.com/gliderlabs/ssh v0.3.5/go.mod h1:8XB4KraRrX39qHhT6yxPsHedjA08I/uBVwj4xC+/+z4=
github.com/glycerine/go-unsnap-stream v0.0.0-20181221182339-f9677308dec2/go.mod h1:/20jfyN9Y5QPEAprSgKAUr+glWDY39ZiUEAYOEv5dsE=
github.com/glycerine/goconvey v0.0.0-20190410193231-58a59202ab31/go.mod h1:Ogl1Tioa0aV7gstGFO7KhffUsb9M4ydbEbbxpcEDc24=
github.com/go-ap/errors v0.0.0-20220618122732-319f41ac54e1 h1:PkPVIQGt76HHFWSeUINXCfYpEnzlSS+AQyuXi7oJ/gM=
github.com/go-ap/errors v0.0.0-20220618122732-319f41ac54e1/go.mod h1:KHkKFKZvc05lr79+RGoq/zG8YjWi3+FK60Bxd+mpCew=
github.com/go-ap/jsonld v0.0.0-20220615144122-1d862b15410d h1:Z/oRXMlZHjvjIqDma1FrIGL3iE5YL7MUI0bwYEZ6qbA=
github.com/go-ap/jsonld v0.0.0-20220615144122-1d862b15410d/go.mod h1:jyveZeGw5LaADntW+UEsMjl3IlIwk+DxlYNsbofQkGA=
github.com/go-ap/errors v0.0.0-20220917143055-4283ea5dae18 h1:A48SbkWKEciiJMbbcPzaRj9aizPUABzXFvCM3LtGGf8=
github.com/go-ap/errors v0.0.0-20220917143055-4283ea5dae18/go.mod h1:dd3ZgjjloBsKPDpqA2kf2VWhF0A1eKUItOBh0/QcDWI=
github.com/go-ap/jsonld v0.0.0-20220917142617-76bf51585778 h1:0tV3i8tE1NghMC4rXZXfD39KUbkKgIyLTsvOEmMOPCQ=
github.com/go-ap/jsonld v0.0.0-20220917142617-76bf51585778/go.mod h1:jyveZeGw5LaADntW+UEsMjl3IlIwk+DxlYNsbofQkGA=
github.com/go-asn1-ber/asn1-ber v1.5.4 h1:vXT6d/FNDiELJnLb6hGNa309LMsrCoYFvpwHDF0+Y1A=
github.com/go-asn1-ber/asn1-ber v1.5.4/go.mod h1:hEBeB/ic+5LoWskz+yKT7vGhhPYkProFKoKdwZRWMe0=
github.com/go-chi/chi/v5 v5.0.1/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8=
You are viewing a condensed version of this merge commit. You can view the full changes here.