Skip to content

Commit

Permalink
refactor(http): call AddPluginWithBuild if we have Version set
Browse files Browse the repository at this point in the history
  • Loading branch information
pcfreak30 committed Nov 6, 2024
1 parent e36902f commit e589f5e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion service/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ func (h *HTTPServiceDefault) apiMetaHandler(w http.ResponseWriter, r *http.Reque
metaBuilder := NewPortalMetaBuilder(h.ctx.Config().Config().Core.Domain)

for _, plugin := range core.GetPlugins() {
metaBuilder.AddPlugin(plugin.ID)
if plugin.Version != nil {
metaBuilder.AddPluginWithBuild(plugin.ID, plugin.Version.Info())
} else {
metaBuilder.AddPlugin(plugin.ID)
}
}

for _, plugin := range core.GetPlugins() {
Expand Down

0 comments on commit e589f5e

Please sign in to comment.