more todo

This commit is contained in:
Nazar Kanaev 2021-04-26 15:22:32 +01:00
parent 36e359c881
commit 883214a740
2 changed files with 2 additions and 0 deletions

View File

@ -144,6 +144,7 @@ func (s *Server) handleFeedErrors(c *router.Context) {
}
func (s *Server) handleFeedIcon(c *router.Context) {
// TODO: caching
id, err := c.VarInt64("id")
if err != nil {
c.Out.WriteHeader(http.StatusBadRequest)

View File

@ -48,6 +48,7 @@ func (w *Worker) FindFavicons() {
}
func (w *Worker) FindFeedFavicon(feed storage.Feed) {
// TODO: give up search attempts if the host is reachable but has no icon
icon, err := findFavicon(feed.Link, feed.FeedLink)
if err != nil {
log.Printf("Failed to find favicon for %s (%s): %s", feed.FeedLink, feed.Link, err)