1
0
Fork 0
mirror of git://git.psyced.org/git/psyced synced 2024-08-15 03:25:10 +00:00

Merge commit 'origin'

This commit is contained in:
psyc://psyced.org/~lynX 2009-04-22 03:58:09 +02:00
commit 7672aaa476
2 changed files with 5 additions and 3 deletions

View file

@ -38,7 +38,8 @@ int buffer_content(string all);
string qHost() { return thehost; } string qHost() { return thehost; }
void fetch(string murl) { void fetch(string murl) {
if (url) return; // why just once? this breaks twitter/*
//if (url) return;
// accept.c does this for us: // accept.c does this for us:
//url = replace(murl, ":/", "://"); //url = replace(murl, ":/", "://");
// so we can use this method also in a normal way // so we can use this method also in a normal way

View file

@ -84,10 +84,11 @@ parse(string body, mapping headers) {
} }
fetch() { 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 -> content( #'parse, 0, 1 );
feed -> fetch("http://twitter.com/statuses/friends_timeline.json" feed -> fetch("http://twitter.com/statuses/friends_timeline.json"
"?count="+( lastid? ("11&since_id="+ lastid) : "11")); "?count="+( lastid? ("23&since_id="+ lastid) : "23"));
call_out( #'fetch, 6 * 59 ); // odd is better
} }
create() { create() {