mirror of
https://github.com/go-gitea/gitea
synced 2025-08-09 11:08:19 +00:00
Fix profile render when the README.md size is larger than 1024 bytes (#25270)
Backport #25131
This commit is contained in:
@@ -88,7 +88,7 @@ func testPackageCargo(t *testing.T, _ *neturl.URL) {
|
||||
blob, err := commit.GetBlobByPath(path)
|
||||
assert.NoError(t, err)
|
||||
|
||||
content, err := blob.GetBlobContent()
|
||||
content, err := blob.GetBlobContent(1024)
|
||||
assert.NoError(t, err)
|
||||
|
||||
return content
|
||||
|
Reference in New Issue
Block a user