fix(user): restore organizations tab on user profile (#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.
This commit is contained in:
Zettat123
2026-10-04 01:30:04 -06:00
committed by GitHub
parent 7641fc3a8c
commit 4bebd86285
2 changed files with 6 additions and 1 deletions
+1
View File
@@ -172,6 +172,7 @@ func testLinksAsUser(t *testing.T) {
"/user2",
"/user2?tab=stars",
"/user2?tab=activity",
"/user2?tab=organizations",
"/user/settings",
"/user/settings/account",
"/user/settings/security",