Skip to content

(bug): Preview not always finding image on site

Summary

The preview when a link is posted does not always find the nested image. Take for example https://www.poemhunter.com/poem/autograph-muse-acrostic-name-alissa-czisny-2/

The image for this is found on other services such as Facebook.

Steps to reproduce

Paste the above link into a new post box - Observe that no image is found.

Platform information

Should be platform independent but replicated on Linux.

What is the current bug behavior?

The image is not found.

What is the expected correct behavior?

The image on the page should be found, and displayed in the preview.

Relevant logs and/or screenshots

(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's very hard to read otherwise.)

Possible fixes

As mentioned by @JakePassi "I think it's because the "og:image" meta tag wasn't used." My personal starting place for fixing this would be Controllers/api/v1/newsfeed/preview.php