NetNewsWire icon indicating copy to clipboard operation
NetNewsWire copied to clipboard

JSON feed images not shown

Open vwkd opened this issue 8 months ago • 0 comments

Description

NetNewsWire doesn't show a JSON feed item's image in the image or banner_image property.

They are shown in other feed readers like Reeder.

Steps To Reproduce

  1. Open Deno's REPL
deno repl -N
  1. Paste in this script to create and serve the example JSON feed.
import { Hono } from "jsr:@hono/hono";
import { Feed } from "jsr:@vwkd/feed";

const feed = new Feed({
  title: "My Example Feed",
  home_page_url: "https://example.org",
  feed_url: "https://example.org/feed.json",
});

feed.add({
  id: "1",
  content_html: "<p>Hello, world!</p>",
  url: "https://example.org/initial-post",
  image: "https://placecats.com/neo/300/200",
});

feed.add({
  id: "2",
  content_text: "This is a second item.",
  url: "https://example.org/second-item",
  banner_image: "https://placecats.com/neo/300/200",
});

const app = new Hono();

app.get("/", () => {
  return new Response(feed.toJSON(), {
    headers: {
      "Content-Type": "application/feed+json; charset=utf-8",
    },
  });
});

Deno.serve(app.fetch);
  1. Subscribe to http://your-machine-ip:8000/ in the feed reader.

Actual result

On NetNewsWire 6.1.8 (Build 6146) on iOS 18.3.2.

Expected result

On Reeder 2025.4.1 on iOS 18.3.2.

vwkd avatar Apr 17 '25 18:04 vwkd