discuitnet / discuit

A free and open-source community discussion platform.
https://discuit.net
GNU Affero General Public License v3.0
411 stars 52 forks source link

[Bug] Link post with non-accessible image results in 500 error #66

Closed Codycody31 closed 4 months ago

Codycody31 commented 5 months ago

Initial post reporting this: https://discuit.net/DiscuitMeta/post/_FbRPTSe Site link: https://www.mobilephonemuseum.com/ Image link: https://mpm-next.code8.link/logo.png (this image returns a 503 from apache, not an image) Message on server when attempting to use URL: 500 Internal server error: Unsupported image format

Seems the image the site uses for its ogImage is not a format discuit supports. Or more like the image it is trying to use doesn't exist

https://github.com/discuitnet/discuit/blob/f6fc5b6aef8f224cf8b71551e430b4965921fb8c/core/post.go#L688-L730

previnder commented 4 months ago

Fixed in dffb310.