Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two copies of single image from IG multi-image post #14

Open
jeremycherfas opened this issue Nov 14, 2018 · 5 comments
Open

Two copies of single image from IG multi-image post #14

jeremycherfas opened this issue Nov 14, 2018 · 5 comments

Comments

@jeremycherfas
Copy link

While trying to do this:

Feed from Instagram multiimage to Known via OwnYourGram

I encountered this error:

Instead of two different images, Known shows two copies of the first image https://stream.jeremycherfas.net/2018/they-go-in-they-come-out20%25-maize-flour-sourdough

Some other notes:

The previous time I had a multi-image in IG, Known pulled in only the first image because I believe that was the correct previous behaviour.

Give us some context:

  • It'd also be really handy if you could tell us the contents of your version.known file
    version = "0.9.9-a"
    build = 2018111201

  • What database are you using? (e.g. mongo, mysql, postgres)

  • Any warnings or errors in your admin/diagnostics page?

  • Bonus points - are you able to illustrate the issue with a unit test? If so, submit it as a pull request!

@mapkyca
Copy link
Member

mapkyca commented Nov 14, 2018

Is there a sample of the ping being sent? It's probably related to the multiple photo changes recently...

@jeremycherfas
Copy link
Author

I believe this is the same issue as https://github.com/idno/known/issues/2227 because I am seeing two images now when only one was uploaded.

@jeremycherfas
Copy link
Author

Deleted previous comments becuase they were wrong and not helpful. I now have an example of the debug response to a POST from OwnYourGram:

debug - MicroPub endpoint pinged: Array
debug - (
debug -     [/micropub/endpoint] =>
debug - )
debug - 
warning - PHP [2] Cannot modify header information - headers already sent by (output started at /home/jeremygrav/stream.jeremycherfas.net/IdnoPlugins/IndiePub/Pages/MicroPub/Endpoint.php:141) in /home/jeremygrav/stream.jeremycherfas.net/Idno/Core/Session.php:404
debug - MicroPub endpoint pinged: Array
debug - (
debug -     [/micropub/endpoint] =>
debug - )
debug - 
debug - JSON Payload: stdClass Object
debug - (
debug -     [type] => Array
debug -         (
debug -             [0] => h-entry
debug -         )
debug - 
debug -     [properties] => stdClass Object
debug -         (
debug -             [content] => Array
debug -                 (
debug -                     [0] => Forgot to post Thursday night\xe2\x80\x99s Thanksgiving feast. Stracotto di manzo with restrained sides.
debug -                 )
debug - 
debug -             [published] => Array
debug -                 (
debug -                     [0] => 2018-11-25T14:20:58+00:00
debug -                 )
debug - 
debug -             [syndication] => Array
debug -                 (
debug -                     [0] => https://www.instagram.com/p/Bqm0EtvH94Q/
debug -                 )
debug - 
debug -             [photo] => Array
debug -                 (
debug -                     [0] => https://stream.jeremycherfas.net/file/20b0694589982f7c8a41dcb28411dd71
debug -                 )
debug - 
debug -         )
debug - 
debug - )

Does that Warning make any sense? Could it be the problem?

@mapkyca
Copy link
Member

mapkyca commented Dec 4, 2018

Odd that the fields are arrays though... hmm...

@jeremycherfas
Copy link
Author

I have not yet had time to install the latest master. I hope to do so in the next couple of days and test again.

@mapkyca mapkyca transferred this issue from idno/known Aug 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants