Michael Jerger
37420442de
unify copyright comment
2024-04-12 13:52:26 +02:00
erik
80888b80d6
Fix imports
2024-04-09 16:00:28 +02:00
erik
af0d0f7745
Merge branch 'forgejo' into forgejo-federated-star
2024-04-09 15:38:11 +02:00
erik
33c60ebdff
Add logging
2024-04-05 17:06:57 +02:00
Michael Jerger
4d5c8b5563
refactor services
2024-03-28 15:00:55 +01:00
oliverpool
7b576d0a5d
activitypub: warn instead of error
2024-03-24 07:12:31 +01:00
Lunny Xiao
894d9b2836
Move context from modules to services ( #29440 )
...
Since `modules/context` has to depend on `models` and many other
packages, it should be moved from `modules/context` to
`services/context` according to design principles. There is no logic
code change on this PR, only move packages.
- Move `code.gitea.io/gitea/modules/context` to
`code.gitea.io/gitea/services/context`
- Move `code.gitea.io/gitea/modules/contexttest` to
`code.gitea.io/gitea/services/contexttest` because of depending on
context
- Move `code.gitea.io/gitea/modules/upload` to
`code.gitea.io/gitea/services/context/upload` because of depending on
context
(cherry picked from commit 29f149bd9f517225a3c9f1ca3fb0a7b5325af696)
Conflicts:
routers/api/packages/alpine/alpine.go
routers/api/v1/repo/issue_reaction.go
routers/install/install.go
routers/web/admin/config.go
routers/web/passkey.go
routers/web/repo/search.go
routers/web/repo/setting/default_branch.go
routers/web/user/home.go
routers/web/user/profile.go
tests/integration/editor_test.go
tests/integration/integration_test.go
tests/integration/mirror_push_test.go
trivial context conflicts
also modified all other occurrences in Forgejo specific files
2024-03-06 12:10:43 +08:00
Michael Jerger
6e6813a88b
make operatorid unique
2024-02-10 15:23:04 +01:00
Michael Jerger
eecb9b8040
fmt fix
2024-02-10 15:22:30 +01:00
Michael Jerger
3ef57385ec
fix linting
2024-02-10 15:21:22 +01:00
Michael Jerger
b2cc848e7d
clean up aliases
2024-02-10 15:20:48 +01:00
Michael Jerger
91f7541add
refactor for semantic and cycle free deps
2024-02-10 15:20:17 +01:00
Michael Jerger
66bc7a9a0c
Search federatedUser instead of loginName
2024-02-10 15:20:09 +01:00
Michael Jerger
edf7f61b83
mv federated_user_creation to user package
2024-02-10 15:19:55 +01:00
Michael Jerger
a702da69cc
added test for federated user
2024-02-10 15:19:40 +01:00
Michael Jerger
a1ca7e958a
use local fqdn for generated user email
2024-02-10 15:19:09 +01:00
Michael Jerger
c58a995fb2
refactor FederationInfo -> FederationHost
2024-02-10 15:18:56 +01:00
Michael Jerger
1b35bd2911
lint fix
2024-02-10 15:18:46 +01:00
Michael Jerger
c4eb763f4a
lint fix
2024-02-10 15:18:45 +01:00
Michael Jerger
ca5eaa8c6b
introduce FI Factory
2024-02-10 15:18:43 +01:00
Michael Jerger
dabd773f6b
Fix error handling & add timestamp check
2024-02-10 15:18:43 +01:00
Michael Jerger
40ec049013
add the next todo
2024-02-10 15:18:42 +01:00
Clemens
1f989f2ecd
Added FederationInfo Create function
2024-02-10 15:18:41 +01:00
Michael Jerger
380d3db0bf
integrate federation info in api call
2024-02-10 15:18:40 +01:00
bom
87bfa79f71
Configure client against DOS
2024-02-10 15:18:25 +01:00
Michael Jerger
ecf391dcbf
add some user creation unittests
2024-02-10 15:17:24 +01:00
Michael Jerger
de2569618c
fix: wmail should start with char
2024-02-10 15:17:23 +01:00
Michael Jerger
6e46739090
validate person
2024-02-10 15:17:14 +01:00
Michael Jerger
0505baab2b
ad validation for like activity
2024-02-10 15:17:13 +01:00
Michael Jerger
3ab2d9a449
rename star -> ForgeLike
2024-02-10 15:17:12 +01:00
Michael Jerger
4473fb788a
start refactoring star->like
2024-02-10 15:17:11 +01:00
Michael Jerger
b2a9b53041
use nodeInfo.Source instead of startActivity.Source
2024-02-10 15:17:07 +01:00
Michael Jerger
8116214727
introduce nodeinfo
2024-02-10 15:17:07 +01:00
bom
310d740cee
Start NodeInfo implementation
2024-02-10 15:17:05 +01:00
Michael Jerger
e704e5adcc
adjust to ugly linting
2024-02-10 15:17:04 +01:00
erik
1e40b814a1
Linting
2024-02-10 15:17:03 +01:00
erik
8585edc47a
Linting
2024-02-10 15:17:03 +01:00
erik
15775ad891
Fix import
2024-02-10 15:16:57 +01:00
erik
715afb2468
Add newlines for readability
2024-02-10 15:16:56 +01:00
erik
4d1492831d
Move char_limiter to utils and rename
2024-02-10 15:16:47 +01:00
erik
afc9acd925
Limit number of characters on body log
2024-02-10 15:16:45 +01:00
erik
3363b3bf0c
Validate response before further processing
2024-02-10 15:16:44 +01:00
erik
ff146a9430
Add review todos
2024-02-10 15:16:40 +01:00
erik
071b47b8d0
Catch edge case: remote user does not exist on remote repo
2024-02-10 15:16:36 +01:00
erik
3327fbc39a
Fix typos, small rewordings
2024-02-10 15:16:32 +01:00
Michael Jerger
1704ac5bc2
fix most of the tests
2024-02-10 15:14:35 +01:00
Michael Jerger
e1d7db178c
unify logging & minor improvements
2024-02-10 15:14:31 +01:00
Michael Jerger
42854c9003
remove global actionUser
2024-02-10 15:14:30 +01:00
Michael Jerger
a0c008b880
cleand up user creation from ap
2024-02-10 15:14:29 +01:00
Michael Jerger
6de8fba14d
minor refactorings
2024-02-10 15:14:26 +01:00