mirror of
1
Fork 0

Fix TestActivityPubPersonInbox segfault

This commit is contained in:
Anthony Wang 2022-06-10 12:30:13 -05:00
parent fc58ab6b25
commit 7428ff0736
No known key found for this signature in database
GPG Key ID: BC96B00AEC5F2D76
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ func TestActivityPubPersonInbox(t *testing.T) {
setting.AppURL = appURL
}()
username1 := "user1"
var ctx context.Context
ctx := context.Context()
user1, err := user_model.GetUserByName(ctx, username1)
assert.NoError(t, err)
user1url := fmt.Sprintf("%s/api/v1/activitypub/user/%s#main-key", srv.URL, username1)