snarfed / bridgy

📣 Connects your web site to social media. Likes, retweets, mentions, cross-posting, and more...
https://brid.gy
Creative Commons Zero v1.0 Universal
723 stars 52 forks source link

brid.gy publish to flickr: "Could not find content in h-entry or any other element!" #679

Closed iamwebrocker closed 8 years ago

iamwebrocker commented 8 years ago

Hi, something seems to have changed in the recent two months (last time I possed a picture to flickr)?

Today I'm getting the error "Could not find content in h-entry or any other element!" and in the brid.gy log I see

2016-07-10 15:36:44.219390 D publishing object type note to Flickr
2016-07-10 15:36:44.307470 I Object type(s) set([u'h-entry']) not supported; error=Cannot publish type=note to Flickr.; trying next.
2016-07-10 15:36:44.313160 W Could not find content in <a href="http://microformats.org/wiki/h-entry">h-entry</a> or any other element!
None

Here is the source code of the image-post in my (WordPress)Blog; to me everything regarding the mf2 seems to be ok (?):

<div id="post-25235" class="h-entry post-25235 post type-post status-publish format-image has-post-thumbnail hentry category-geknipst tag-frankfurt tag-grass tag-skyline tag-skyscaper post_format-post-format-image" >
    <h2 class="post-title p-name">Skyline am Main</h2>
    <div class="post-content e-content">
        <p><a class="thickbox" href="https://www.webrocker.de/blog/wp-content/uploads/2016/07/maincafe_IMG_2633.jpg"><img class="alignnone wp-image-25236 size-medium" src="https://www.webrocker.de/blog/wp-content/uploads/2016/07/maincafe_IMG_2633-800x600.jpg" alt="Skyline am Main" width="800" height="600" srcset="https://www.webrocker.de/blog/wp-content/uploads/2016/07/maincafe_IMG_2633-800x600.jpg 800w, https://www.webrocker.de/blog/wp-content/uploads/2016/07/maincafe_IMG_2633-300x225.jpg 300w, https://www.webrocker.de/blog/wp-content/uploads/2016/07/maincafe_IMG_2633-1200x900.jpg 1200w" sizes="(max-width: 800px) 100vw, 800px" /></a><a href="https://brid.gy/publish/flickr"></a></p>
    </div>
(... post footer )
</div>
snarfed commented 8 years ago

thanks for the detail! looks like your img is missing class="u-photo". details: https://brid.gy/about#picture

iamwebrocker commented 8 years ago

oh d'oh. I swear I looked over the source again and again, but this escaped me. Sorry for the bother an thanks for the fast reply! <3