mirror of
https://github.com/nkanaev/yarr.git
synced 2025-09-13 01:45:37 +00:00
more todo
This commit is contained in:
@@ -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)
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user