1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-09-15 18:57:04 +00:00

feat: combine feed icon handlers to use only externalIconID

This commit is contained in:
Frédéric Guillot 2025-03-28 14:20:53 -07:00
parent c531be8780
commit e643effefa
16 changed files with 33 additions and 52 deletions

View file

@ -12,9 +12,9 @@ import (
"miniflux.app/v2/internal/http/response/html"
)
func (h *handler) showIcon(w http.ResponseWriter, r *http.Request) {
iconID := request.RouteInt64Param(r, "iconID")
icon, err := h.store.IconByID(iconID)
func (h *handler) showFeedIcon(w http.ResponseWriter, r *http.Request) {
externalIconID := request.RouteStringParam(r, "externalIconID")
icon, err := h.store.IconByExternalID(externalIconID)
if err != nil {
html.ServerError(w, r, err)
return