fix star not being filled on when you star a repo

This commit is contained in:
Evan Jarrett
2026-05-06 21:24:36 -05:00
parent 2d0872790d
commit 56f3b2fc2f
+6 -5
View File
@@ -167,11 +167,12 @@ func (h *UnstarRepositoryHandler) ServeHTTP(w http.ResponseWriter, r *http.Reque
// renderStarComponent renders the star component HTML for HTMX responses
func renderStarComponent(w http.ResponseWriter, tmpl *template.Template, handle, repository string, isStarred bool, starCount int) {
data := map[string]any{
"Interactive": true,
"Handle": handle,
"Repository": repository,
"IsStarred": isStarred,
"StarCount": starCount,
"Interactive": true,
"IsAuthenticated": true,
"Handle": handle,
"Repository": repository,
"IsStarred": isStarred,
"StarCount": starCount,
}
var buf bytes.Buffer