Closed (fixed)
Project:
Twitter Pull
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Mar 2013 at 17:09 UTC
Updated:
21 Jun 2013 at 13:02 UTC
Jump to comment: Most recent file
Comments
Comment #1
wbobeirne commentedComment #2
wbobeirne commentedApologies, left a comment of the original implementation in there. Attaching a new patch without that comment.
Comment #3
wbobeirne commentedSo it turns out twitter_pull sends in the item as an array with nested arrays, and the twitter module sends it in as an object with nested objects. Simply casting wasn't working because that's not recursive, so I'm attaching a patch that does a json encode/decode to get the whole thing to be an object.
Comment #4
victoriachan commentedI've tested this. It works well and fixes the bug caused by $item array/object inconsistency as well (#1933110).
Hope it gets committed.
Thanks!
Comment #5
tinkerbelle commentedAnother vote for this patch working, fixing #1933110: Incorrect parsing of items. (notices ar thrown), and being something I'd love to see committed!
Thanks wbobeirne!
Comment #6
mfernea commentedI agree that the patch at #3 solves #1933110: Incorrect parsing of items. (notices ar thrown) too.
Comment #7
elliotttf commentedI had to convert the user to an object for my use case too, but otherwise this worked perfectly.
Comment #8
wbobeirne commented#7, json_encode / json_decode recursively converts an array to an object. No need to do it twice.
Comment #9
cdenneen commented@wbobeirne
I've created patch #4 which is the same as your patch #3 but applies cleanly with http://drupal.org/files/typecast_user_variable_in_twitter_class-1781024-...
that contains a patch to fix the lists author issue with 7.x-2.x-dev (http://drupal.org/node/1781024#comment-7232862)
Comment #10
cdenneen commented@wbobeirne
For some reason the git diff got truncated here is the #5 patch which should fix the issue with #4
Comment #11
jec006 commentedThanks guys, committed here: http://drupalcode.org/project/twitter_pull.git/commit/86d7532
Thanks to all of you
Comment #13
joachim commented> No admin interface for setting this variable.
And no documentation either! How is anyone meant to know this exists?
Comment #13.0
joachim commentedAdded link to issue