You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/services/repository/files
yp05327 22a39bb961
Fix profile render when the README.md size is larger than 1024 bytes (#25131)
Fixes https://github.com/go-gitea/gitea/issues/25094

`GetBlobContent` will only get the first 1024 bytes, if the README.md
size is larger than 1024 bytes,
We can not render the rest of them.
After this fix, we should provide the limited size to read when call
`GetBlobContent`.

After:

![image](https://github.com/go-gitea/gitea/assets/18380374/22a42936-4cf8-40b4-a5c7-e384082beb0d)

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2 years ago
..
cherry_pick.go Add context cache as a request level cache (#22294) 2 years ago
commit.go Add context cache as a request level cache (#22294) 2 years ago
content.go Fix profile render when the README.md size is larger than 1024 bytes (#25131) 2 years ago
content_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
diff.go Implement FSFE REUSE for golang files (#21840) 2 years ago
diff_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
file.go API endpoint for changing/creating/deleting multiple files (#24887) 2 years ago
file_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
patch.go Add context cache as a request level cache (#22294) 2 years ago
temp_repo.go Refactor git command package to improve security and maintainability (#22678) 2 years ago
tree.go Return empty url for submodule tree entries (#23043) 2 years ago
tree_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
update.go Update repo's default branch when adding new files in an empty one (#25017) 2 years ago
upload.go Allow adding new files to an empty repo (#24164) 2 years ago