stephensekula / navierstokes

A bridge between some social networks to improve broadcasting and sharing.
6 stars 3 forks source link

PumpTools.py posts N copies of a text post for each of N images attached to the original #7

Closed stephensekula closed 1 year ago

stephensekula commented 7 years ago

Currently, PumpTools.py will post 1 post for each image attachment of an incoming post, so the text of the message is repeated with a different image each time. This should be revisited. How to pick which image? Can multiple images be attached to a single Pump.io post?

stephensekula commented 7 years ago

I discussed this in a short chat with Jan Kusanagi (https://hub.polari.us/steve/note/ltCwTugUQHyeeGjWXVIsNQ) and he pointed out that in pump.io, images are not attachments. A post can be an image object, which can be annotated with text. So I am looking at this wrong, and in fact it's not possible for more than one image file to be associated with a single image object. So to address this, I will have to choose 1 image from the multiple attached to a post from another network (e.g. Twitter).

stephensekula commented 1 year ago

This is resolved in favor of 1 image, 1 post. I simply do the silly thing: pick the first image in the list and post.