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:
parent
c531be8780
commit
e643effefa
16 changed files with 33 additions and 52 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue