Return an empty string when a repo has no avatar in the repo API#31187
Conversation
wxiaoguang
left a comment
There was a problem hiding this comment.
Oops, I forgot that the link could be empty
|
Does |
* giteaofficial/main: [skip ci] Updated licenses and gitignores Fix overflow in issue card (go-gitea#31203) Fix agit checkout command line hint & fix ShowMergeInstructions checking (go-gitea#31219) Fix the possible migration failure on 286 with postgres 16 (go-gitea#31209) Only update poster in issue/comment list if it has been loaded (go-gitea#31216) Return an empty string when a repo has no avatar in the repo API (go-gitea#31187) Split sanitizer functions and fine-tune some tests (go-gitea#31192) Performance improvements for pull request list API (go-gitea#30490) Fix URL In Gitea Actions Badge Docs (go-gitea#31191)
|
@yardenshoham any idea what's missing to get the GiteaBot to backport this PR? Thanks |
|
It creates backports whenever a new commit is pushed. There were no new commits since you added the label. |
…gitea#31187) Backport go-gitea#31187 Resolves go-gitea#31167. go-gitea#30885 changed the behavior of `repo.AvatarLink()` where it can now take the empty string and append it to the app data URL. This does not point to a valid avatar image URL, and, as the issue mentions, previous Gitea versions returned the empty string. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
I recall it had backported before even without any new commits, was that changed? |
|
No. New commits were always the only trigger. |
|
Imho, it should also watch when |
|
It's a bit of a problem because we only have one filesystem so concurrent cherry-picks would happen. |
) (#31567) Backport #31187 Resolves #31167. #30885 changed the behavior of `repo.AvatarLink()` where it can now take the empty string and append it to the app data URL. This does not point to a valid avatar image URL, and, as the issue mentions, previous Gitea versions returned the empty string. Co-authored-by: Kemal Zebari <60799661+kemzeb@users.noreply.github.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
|
Hmm, sounds like you need some form of distributed locking. Redis could be used for example. |
Resolves #31167.
#30885 changed the behavior of
repo.AvatarLink()where it can now take the empty string and append it to the app data URL. This does not point to a valid avatar image URL, and, as the issue mentions, previous Gitea versions returned the empty string.