Closed joelgombin closed 10 years ago
Are you using the most recent version of TCAT? We've encountered this problem in the past but we are supposed to have fixed it months ago. How recent are your records with truncated Tweet IDs?
in capture/common/functions (in the Tweet class, fromJson()): $this->id = $data["id_str"];
(this code is used by the streaming code as well as the search code)
OK I know where my mistake was. I was looking at the fromGnip
class rather than the fromJson
. Sorry about that!
It looks like it is recommended to use the
id_str
field from the JSON tweet payload rather than theid
field, which being a large integer (>53 bits) is prone to approximation error (see https://dev.twitter.com/overview/api/twitter-ids-json-and-snowflake). Unless I'm mistaken, though, tcat uses theid
field (at least for the streaming part, I haven't checked the search script).In any case, I've encountered several cases where the tweet ID used by tcat is incorrect.