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/web/repo
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
..
actions Add step start time to `ViewStepLog` (#24980) 2 years ago
setting Add user level action runners (#24995) 2 years ago
activity.go Implement FSFE REUSE for golang files (#21840) 2 years ago
attachment.go Fix users cannot visit issue attachment bug (#25019) 2 years ago
blame.go Sort repo topic labels by name (#24123) 2 years ago
branch.go Use the type RefName for all the needed places and fix pull mirror sync bugs (#24634) 2 years ago
cherry_pick.go Rename almost all Ctx functions (#22071) 2 years ago
commit.go Pass 'not' to commit count (#24473) 2 years ago
compare.go Don't list root repository on compare page if pulls not allowed (#24183) 2 years ago
download.go Decouple the different contexts from each other (#24786) 2 years ago
editor.go API endpoint for changing/creating/deleting multiple files (#24887) 2 years ago
editor_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
find.go Implement FSFE REUSE for golang files (#21840) 2 years ago
helper.go Refactor authors dropdown (send get request from frontend to avoid long wait time) (#23890) 2 years ago
helper_test.go Refactor authors dropdown (send get request from frontend to avoid long wait time) (#23890) 2 years ago
http.go Redesign Scoped Access Tokens (#24767) 2 years ago
http_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
issue.go Fix `MilestoneIDs` when querying issues (#25125) 2 years ago
issue_content_history.go Move helpers to be prefixed with `gt-` (#22879) 2 years ago
issue_dependency.go Add API to manage issue dependencies (#17935) 2 years ago
issue_label.go Make label templates have consistent behavior and priority (#23749) 2 years ago
issue_label_test.go Make label templates have consistent behavior and priority (#23749) 2 years ago
issue_lock.go Fix improper HTMLURL usages in Go code (#22839) 2 years ago
issue_pin.go Followup to pinned Issues (#24945) 2 years ago
issue_stopwatch.go Speed up HasUserStopwatch & GetActiveStopwatch (#23051) 2 years ago
issue_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
issue_timetrack.go Fix improper HTMLURL usages in Go code (#22839) 2 years ago
issue_watch.go Rewrite logger system (#24726) 2 years ago
lfs.go Introduce path Clean/Join helper functions (#23495) 2 years ago
main_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
middlewares.go Use graceful editorconfig loader to reduce errors when loading malformed editorconfigs (#21257) 2 years ago
migrate.go Make repo migration cancelable and fix various bugs (#24605) 2 years ago
milestone.go Improve Gitea's web context, decouple "issue template" code into service package (#24590) 2 years ago
packages.go Use dynamic package type list (#22263) 2 years ago
patch.go Redirect to the commit page after applying patch (#23056) 2 years ago
projects.go Merge `new project` templates into one (#24985) 2 years ago
projects_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
pull.go Add IsErrRepoFilesAlreadyExist check when fork repo (#24678) 2 years ago
pull_review.go Make Ctrl+Enter submit a pending comment (starting review) instead of submitting a single comment (#23245) 2 years ago
release.go fix: release page for empty or non-existing target (#24470) 2 years ago
release_test.go fix: release page for empty or non-existing target (#24470) 2 years ago
render.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo.go Remove the parallelizing when loading repo for dashboard (#24705) 2 years ago
search.go Fix improper HTMLURL usages in Go code (#22839) 2 years ago
setting.go Hide 'Mirror Settings' when unneeded, improve hints (#24433) 2 years ago
setting_protected_branch.go Support for status check pattern (#24633) 2 years ago
settings_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
tag.go Add main landmark to templates and adjust titles (#22670) 2 years ago
topic.go Implement FSFE REUSE for golang files (#21840) 2 years ago
treelist.go Implement FSFE REUSE for golang files (#21840) 2 years ago
view.go Fix profile render when the README.md size is larger than 1024 bytes (#25131) 2 years ago
view_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
webhook.go New webhook trigger for receiving Pull Request review requests (#24481) 2 years ago
wiki.go Decouple the different contexts from each other (#24786) 2 years ago
wiki_test.go Make wiki title supports dashes and improve wiki name related features (#24143) 2 years ago