diff --git a/routers/api/v1/repo/blob.go b/routers/api/v1/repo/blob.go index 63baec2025..e16f0b53c9 100644 --- a/routers/api/v1/repo/blob.go +++ b/routers/api/v1/repo/blob.go @@ -15,7 +15,7 @@ import ( func GetBlobs(ctx *context.APIContext) { // swagger:operation GET /repos/{owner}/{repo}/git/blobs repository GetBlobs // --- - // summary: Gets multiplbe blobs of a repository. + // summary: Gets multiple blobs of a repository. // produces: // - application/json // parameters: diff --git a/routers/api/v1/repo/wiki.go b/routers/api/v1/repo/wiki.go index 7b6a00408a..71d29d026b 100644 --- a/routers/api/v1/repo/wiki.go +++ b/routers/api/v1/repo/wiki.go @@ -509,7 +509,7 @@ func wikiContentsByEntry(ctx *context.APIContext, entry *git.TreeEntry) string { blob := entry.Blob() content, err := blob.GetContentBase64(setting.API.DefaultMaxBlobSize) if err != nil && !errors.As(err, &git.BlobTooLargeError{}) { - ctx.Error(http.StatusInternalServerError, "GetBlobContentBase64", err) + ctx.Error(http.StatusInternalServerError, "GetContentBase64", err) return "" } return content diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index eaa2e7c0d2..d16911e385 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -8210,7 +8210,7 @@ "tags": [ "repository" ], - "summary": "Gets multiplbe blobs of a repository.", + "summary": "Gets multiple blobs of a repository.", "operationId": "GetBlobs", "parameters": [ { diff --git a/tests/integration/org_profile_test.go b/tests/integration/org_profile_test.go index 381d11c95f..d806f6103a 100644 --- a/tests/integration/org_profile_test.go +++ b/tests/integration/org_profile_test.go @@ -1,4 +1,4 @@ -// Copyright 2024 The Forgejo Authors c/o Codeberg e.V.. All rights reserved. +// Copyright 2025 The Forgejo Authors c/o Codeberg e.V.. All rights reserved. // SPDX-License-Identifier: MIT package integration