Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It's inconsistent between README rendering and user profile rendering #25094

Closed
hiifong opened this issue Jun 6, 2023 · 0 comments · Fixed by #25131
Closed

It's inconsistent between README rendering and user profile rendering #25094

hiifong opened this issue Jun 6, 2023 · 0 comments · Fixed by #25131
Labels

Comments

@hiifong
Copy link
Contributor

hiifong commented Jun 6, 2023

Description

image
image

Gitea Version

v1.20+

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

./gitea web

Database

MySQL

@lunny lunny changed the title There is a problem with profile README rendering It's inconsistent between README rendering and user profile rendering Jun 6, 2023
lunny pushed a commit that referenced this issue Jun 13, 2023
…25131)

Fixes #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>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant