The discussion revolves around the absence of image_url in the JSON search results returned by Discourse’s API. Bcat notes that while image_url is available in other endpoints like category, tag, and top searches, it is missing in search queries, leading to inefficient workflows requiring multiple API calls to retrieve images. neounix confirms this issue, citing a specific search query where the image_url field is absent despite the presence of an image in the topic. bombledmonk also reports the same problem, referencing API documentation and providing visual evidence. Bcat suggests a workaround using external solutions if needed, highlighting the inconsistency in the API’s behavior.
I’m not 100% sure this is the same problem, but I think it could be. I’m using the search api, the image_url no longer seems to show up in the topics array using this query. The object in the topics array links here where there is an image in the top post, but unless I’m misunderstanding something in the API docs (which I might be) the image_url is missing. It’s been a while since I’ve looked at this, but I thought this used to work as-is.