mirror of
https://github.com/go-gitea/gitea
synced 2025-08-10 11:38:20 +00:00
Fix profile render when the README.md size is larger than 1024 bytes (#25270)
Backport #25131
This commit is contained in:
@@ -107,7 +107,7 @@ func Profile(ctx *context.Context) {
|
||||
}
|
||||
blob, err := commit.GetBlobByPath("README.md")
|
||||
if err == nil {
|
||||
bytes, err := blob.GetBlobContent()
|
||||
bytes, err := blob.GetBlobContent(setting.UI.MaxDisplayFileSize)
|
||||
if err != nil {
|
||||
ctx.ServerError("GetBlobContent", err)
|
||||
return
|
||||
|
Reference in New Issue
Block a user