1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05:00
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>
2023-06-13 09:02:25 +00:00
..
cherry_pick.go Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
commit.go Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
content_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
content.go Fix profile render when the README.md size is larger than 1024 bytes (#25131) 2023-06-13 09:02:25 +00:00
diff_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
diff.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
file_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
file.go API endpoint for changing/creating/deleting multiple files (#24887) 2023-05-29 17:41:35 +08:00
patch.go Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
temp_repo.go Refactor git command package to improve security and maintainability (#22678) 2023-02-04 10:30:43 +08:00
tree_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
tree.go Return empty url for submodule tree entries (#23043) 2023-02-21 12:31:17 -05:00
update.go Update repo's default branch when adding new files in an empty one (#25017) 2023-05-31 17:07:51 +08:00
upload.go Allow adding new files to an empty repo (#24164) 2023-04-19 21:40:42 +08:00