mohamedmansour / google-plus-extension-jsapi

Unofficial Google+ Read/Write Extension API
https://plus.google.com/116805285176805120365/posts/JYiVWmFbeSn
Other
175 stars 35 forks source link

Incorrect original sharer shown for posts that have been compound shared #29

Closed ryanpeggs closed 12 years ago

ryanpeggs commented 12 years ago

If a post was shared and then the share re-shared by another user, this API returns only the previous share and not the original iteration of the post. Index 44 should be used rather than index 43 when parsing a post (~line 168).

EXAMPLE: https://plus.google.com/u/0/106518477192762767665/posts/GR8z2r6ZBuS

This api returns "john smith" as the original share owner whereas the desktop site shows "Janet HAL".

mohamedmansour commented 12 years ago

Can you submit a pull request please? The share API was done by @tzafrir

tzafrir commented 12 years ago

The code in question here is _parsePost

ryanpeggs commented 12 years ago

Pull request submitted...

mohamedmansour commented 12 years ago

Awesome thanks Ryan! Fixed in #30