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/routers
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
..
api Fix compatible for webhook ref type (#25195) 2 years ago
common Fix admin config page error, use tests to cover the admin config and 500 error page (#24965) 2 years ago
install Do not overwrite the log mode when installing (#25203) 2 years ago
private Use the type RefName for all the needed places and fix pull mirror sync bugs (#24634) 2 years ago
utils Implement FSFE REUSE for golang files (#21840) 2 years ago
web Fix profile render when the README.md size is larger than 1024 bytes (#25131) 2 years ago
init.go Decouple the different contexts from each other (#24786) 2 years ago