From 45480671b6a4d19a08f0f1166a467f0c1cd86ee2 Mon Sep 17 00:00:00 2001 From: "psyc://psyced.org/~lynX" <@> Date: Mon, 20 Apr 2009 09:57:40 +0200 Subject: [PATCH] not just once --- world/net/http/fetch.c | 3 ++- world/net/twitter/polly.c | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/world/net/http/fetch.c b/world/net/http/fetch.c index 530ff0e..67e5cc3 100644 --- a/world/net/http/fetch.c +++ b/world/net/http/fetch.c @@ -38,7 +38,8 @@ int buffer_content(string all); string qHost() { return thehost; } void fetch(string murl) { - if (url) return; + // why just once? this breaks twitter/* + //if (url) return; // accept.c does this for us: //url = replace(murl, ":/", "://"); // so we can use this method also in a normal way diff --git a/world/net/twitter/polly.c b/world/net/twitter/polly.c index f8acbcd..a962bda 100644 --- a/world/net/twitter/polly.c +++ b/world/net/twitter/polly.c @@ -84,10 +84,11 @@ parse(string body, mapping headers) { } fetch() { + P3(("%O ready to fetch from %O\n", ME, feed)) + call_out( #'fetch, 3 * 59 ); // odd is better feed -> content( #'parse, 0, 1 ); feed -> fetch("http://twitter.com/statuses/friends_timeline.json" - "?count="+( lastid? ("44&since_id="+ lastid) : "44")); - call_out( #'fetch, 6 * 59 ); // odd is better + "?count="+( lastid? ("23&since_id="+ lastid) : "23")); } create() {