#600 closed defect (fixed)
Twitter: on signon, get friends/followers
Reported by: | Owned by: | geert | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Version: | 1.2.6 | |
Keywords: | Cc: | ||
IRC client+version: | Client-independent | Operating System: | Public server |
OS version/distro: |
Description
I think Twitter should get all friends and followers on signon, not just when a Tweet by them is received.
So, on signon, just poll http://dev.twitter.com/doc/get/followers/ids once.
Attachments (0)
Change History (10)
comment:1 Changed at 2010-06-24T00:50:18Z by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 Changed at 2010-06-28T09:36:34Z by
Still experiencing weirdnesses on this with bzr-devel-600. After "Getting contact list" and "Getting initial statuses", I have 102 nicks in my Twitter channel. But I am following almost 300 accounts, so some still join only when they post something.
I haven't looked at the code, but this sounds to me like something with the "100 people" condition of http://code.bitlbee.org/lh/bitlbee/revision/600
comment:4 Changed at 2010-06-29T23:33:11Z by
Ah, interesting one. The "cursor" is a 64-bit integer, the code only used a 32-bit signed integer and ended up with negative values, thinking it hit the end of the list already.
Note that I tested this using the BitlBee account by listing followers instead of following. I don't have access to any Twitter account that follows >100 people. Please let me know how this works, in my test I still didn't seem to get a full list. Oddly enough, Twitter says I hit the end of the list.
comment:5 Changed at 2010-06-30T11:12:51Z by
Still doesn't work, 102 nicks again with bzr-devel-602.
comment:6 Changed at 2010-06-30T19:52:26Z by
Another restart and I have 202 nicks at join. But still not all :)
comment:7 Changed at 2010-06-30T22:32:59Z by
It starts to look like Twitter's fault to me. Whenever I try to fetch any list containing more than 200 items, the second 100-item list claims to be the end of the list. (next_cursor=0) Not sure what to do here.
comment:8 Changed at 2010-06-30T22:36:40Z by
WTF, if I do the same thing on the command line, I get the full list. Stupid Twitter. :-(
That API call returns just numeric user IDs, so not very useful.
But see changeset:devel,598. This is now done, and for extra niceness it's done before joining you to the &twitter channel so you won't see a join flood but everyone immediately in /names.