forked from forgejo/forgejo
Fix profile render when the README.md size is larger than 1024 bytes (#25270)
Backport #25131
This commit is contained in:
parent
037366f93f
commit
d686aa0d31
6 changed files with 114 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue