mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-22 15:23:14 -05:00
fix most of the tests
This commit is contained in:
parent
9e6c45f87d
commit
1704ac5bc2
2 changed files with 3 additions and 3 deletions
|
@ -31,7 +31,7 @@ func Test_StarMarshalJSON(t *testing.T) {
|
|||
Object: ap.IRI("https://codeberg.org/api/v1/activitypub/repository-id/1"),
|
||||
},
|
||||
},
|
||||
want: []byte(`{"source":"forgejo","type":"Star","actor":"https://repo.prod.meissa.de/api/activitypub/user-id/1","object":"https://codeberg.org/api/activitypub/repository-id/1"}`),
|
||||
want: []byte(`{"source":"forgejo","type":"Star","actor":"https://repo.prod.meissa.de/api/v1/activitypub/user-id/1","object":"https://codeberg.org/api/v1/activitypub/repository-id/1"}`),
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
@ -110,7 +110,7 @@ func RepositoryInbox(ctx *context.APIContext) {
|
|||
// Check if user already exists
|
||||
users, err := SearchUsersByLoginName(actorAsLoginId)
|
||||
if err != nil {
|
||||
ctx.ServerError(fmt.Sprintf("Searching for user failed: %v"), err)
|
||||
ctx.ServerError("Searching for user failed", err)
|
||||
return
|
||||
}
|
||||
log.Info("RepositoryInbox: local found users: %v", len(users))
|
||||
|
@ -120,7 +120,7 @@ func RepositoryInbox(ctx *context.APIContext) {
|
|||
{
|
||||
user, err = createUserFromAP(ctx, actorId)
|
||||
if err != nil {
|
||||
ctx.ServerError(fmt.Sprintf("Searching for user failed: %v"), err)
|
||||
ctx.ServerError("Searching for user failed", err)
|
||||
return
|
||||
}
|
||||
log.Info("RepositoryInbox: created user from ap: %v", user)
|
||||
|
|
Loading…
Reference in a new issue