Skip to content

fix(user): restore organizations tab on user profile - #39577

Merged
wxiaoguang merged 1 commit into
go-gitea:mainfrom
Zettat123:fix-organizations-error
Oct 4, 2026
Merged

wxiaoguang merged 1 commit into
go-gitea:mainfrom
Zettat123:fix-organizations-error

Conversation

@Zettat123

Copy link
Copy Markdown
Contributor

Fixes #39572

The shared user cards template calls the User-only IsTypeBot method. The profile organizations tab passed *organization.Organization values to that template, so /{username}?tab=organizations returned a 500 error.

Organizations are now converted to Users before rendering.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Oct 4, 2026
@Zettat123 Zettat123 added the backport/v28 This PR should be backported to Gitea 28 label Oct 4, 2026
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Oct 4, 2026
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Oct 4, 2026
@wxiaoguang
wxiaoguang merged commit 4bebd86 into go-gitea:main Oct 4, 2026
31 checks passed
@wxiaoguang
wxiaoguang deleted the fix-organizations-error branch October 4, 2026 07:30
@GiteaBot GiteaBot added this to the 29.0.0 milestone Oct 4, 2026
@GiteaBot GiteaBot added the backport/done All backports for this PR have been created label Oct 4, 2026
wxiaoguang pushed a commit that referenced this pull request Oct 4, 2026
Backport #39577

Fixes #39572

The shared user cards template calls the User-only `IsTypeBot` method.
The profile organizations tab passed `*organization.Organization` values
to that template, so `/{username}?tab=organizations` returned a 500
error.

Organizations are now converted to Users before rendering.

Co-authored-by: Zettat123 <zettat123@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/done All backports for this PR have been created backport/v28 This PR should be backported to Gitea 28 lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

User Organizations "Tab" shows "500 Internal Server Error"

4 participants