Pleroma gets info for the wrong Flickr photo when the flic.kr shortener is used
This post shows Pleroma getting the OpenGraph info for the wrong photo:
Gymnastics Feb. 2018 | Renbrook School | Flickr
Explore Renbrook School's 32919 photos on Flickr!
The correct info should be like in this post, which shows that the non-shortened URL format works just fine:
Cierra, Neil, and Cherryblossoms | Neil Hodges | Flickr
Explore takenji1989's 22857 photos on Flickr!
The short URL example is fine, as wget
and curl
get the correct OpenGraph info:
% wget -qO- 'https://flic.kr/p/231oyNG' | grep '<meta.*og:'
<meta property="og:site_name" content="Flickr" />
<meta property="og:updated_time" content="2020-03-08T14:52:25.297Z" />
<meta property="og:title" content="Cierra, Neil, and Cherryblossoms" data-dynamic="true">
<meta property="og:description" content="Explore takenji1989's photos on Flickr. takenji1989 has uploaded 22857 photos to Flickr." data-dynamic="true">
<meta property="og:type" content="article" data-dynamic="true">
<meta property="og:url" content="https://www.flickr.com/photos/105592384@N07/39385808900/" data-dynamic="true">
<meta property="og:image" content="https://live.staticflickr.com/817/39385808900_26019c810b_b.jpg" data-dynamic="true">
<meta property="og:image:width" content="1024" data-dynamic="true">
<meta property="og:image:height" content="768" data-dynamic="true">
The vast majority of short Flickr URLs I've seen have exhibited this issue: either the wrong info is grabbed, or it fails altogether for valid short URLs.
Edited by Neil E. Hodges