aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/twitter/twitter_lib.c
Commit message (Collapse)AuthorAgeLines
...
* | Detect and handle streaming connection loss.Wilmer van der Gaast2012-11-11-0/+10
| |
* | Tiny cleanup. Fixing some memory leaks (why did I not notice so far thatWilmer van der Gaast2012-11-11-5/+3
| | | | | | | | | | those free()s were commented out?).
* | Realised I don't need delimited=length at all, objects are guaranteed to beWilmer van der Gaast2012-11-11-32/+22
| | | | | | | | | | CRLF-terminated.
* | Showing tweets now, and leaking less memory. Still lots of cleanup leftWilmer van der Gaast2012-11-11-26/+54
| | | | | | | | | | to do.
* | Very immature code for reading from the streaming API. It reads from aWilmer van der Gaast2012-11-10-4/+64
| | | | | | | | | | | | fixed URL and tried to parse individual JSON objects. Not doing anything useful with it.
* | Removed xmltree dependency entirely.Wilmer van der Gaast2012-11-10-22/+17
| |
* | Fixed the last parser (generic handler which just remembers status IDs).Wilmer van der Gaast2012-11-09-4/+3
| | | | | | | | | | | | xmltree.h include can almost be removed, it's just used for return values now.
* | Updated error response parsing. Also, use this for 401 responses so for exampleWilmer van der Gaast2012-11-09-13/+12
| | | | | | | | | | | | | | | | the auth errors caused by NTP desync are clearer: <root> twitter - Login error: Authentication failure (401 Unauthorized (Timestamp out of bounds))
* | Getting better. Corruption fixed, fetching of mentions fixed, error handlingWilmer van der Gaast2012-11-09-6/+14
| | | | | | | | | | "fixed".
* | It logs in and fetches statuses! \o/ But, some corruption..Wilmer van der Gaast2012-11-08-59/+76
| |
* | Type safety check.Wilmer van der Gaast2012-11-05-0/+4
| |
* | Can log in now. Fails to fetch timelines though, which is going to be theWilmer van der Gaast2012-11-05-72/+42
| | | | | | | | | | more annoying part anyway. Plus, I want streaming API stuff instead.
* | s/.xml/.json/. Good luck getting that working again.Wilmer van der Gaast2012-11-04-3/+3
| |
* | Move Twitter XML parsing/error checking into a separate function and use itWilmer van der Gaast2012-09-25-83/+64
| | | | | | | | | | everywhere. This should be a more thorough fix for #953.
* | Since I can't figure out where the stalls are coming from at this point, atWilmer van der Gaast2012-09-22-1/+4
| | | | | | | | | | | | | | | | least have a work-around for it. After hitting the Twitter timer a few times while a previous fetch still seems to be running, close the connection. Auto-reconnect will do the rest.
* | Little cleanup. Use xt_from_string() where possible.Wilmer van der Gaast2012-09-22-32/+24
| |
* | Merge Twitter favourite command from Flexo/#983. Leaving out the unfavouriteWilmer van der Gaast2012-09-15-0/+12
|/ | | | | | | | command for reasons given there. At this point there are loads of command and stuff is getting a little messy maybe.. :-/
* Scan media entities as well, not just url entities. This should expand moreWilmer van der Gaast2012-06-04-15/+22
| | | | | t.co URLs.
* Merging report-spam patch for Twitter from Flexo. #923Wilmer van der Gaast2012-03-12-0/+14
|
* Applied patch from #895, making show_old_mentions an integer setting insteadWilmer van der Gaast2012-02-10-4/+7
| | | | | of boolean so you can change the number of mentions being fetched.
* Merging strip_newlines Twitter setting.Wilmer van der Gaast2012-01-30-0/+3
|\
| * add 'strip_newlines' setting to TwitterDaniel Albers2012-01-13-0/+3
|/
* Don't handle HTTP 401 responses from Twitter API differently anymore afterWilmer van der Gaast2012-01-10-8/+0
| | | | | | initial login. This fixes issues with Twitter's intermittent authentication failures. (Bug #893)
* Return, don't try to flush the timeline on a broken connection. This likelyWilmer van der Gaast2012-01-10-2/+2
| | | | | fixes #888/#891.
* Fixing memory leak in Twitter module.Wilmer van der Gaast2011-12-26-8/+7
|
* Hopefully this fixed #838. Patch from Artem Savkov, thanks! The problem wasWilmer van der Gaast2011-11-24-17/+18
| | | | | | HTTP failures caused by (most likely) DNS resolution problems. Yes, ignoring return values is still bad, kids!
* changeset:devel,814 was silly and incomplete. This should fix that. FullWilmer van der Gaast2011-10-19-0/+4
| | | | | workaround for Twitter "hang" problem.
* Stupid work-around for bug #838. The troublesome condition is known, I justWilmer van der Gaast2011-10-17-0/+7
| | | | | | don't know exactly how BitlBee gets into it. Any more info from people who see this problem often would be useful.
* Just reconstruct all retweets instead of just the ones marked as truncated.Wilmer van der Gaast2011-08-27-5/+3
|
* Since t.co is all over Twitter now, start parsing and showing entityWilmer van der Gaast2011-08-26-10/+35
| | | | | | | | | | | | | information. I'm going for this way of rendering even though full URLs are also available to me because A) it puts me on the safe side wrt Twitter ToS and B) some full URLS may really be very long. Noticed some problem with truncated RT statuses not getting fixed but this seems to be unrelated. (This is a truncated RT status without the "truncated" property set.) Bug #821.
* Merging Twitter-mentions patch from meh. Bug #663.Wilmer van der Gaast2011-08-25-55/+247
|
* Change the default base_url to something that works. Change the default forWilmer van der Gaast2011-06-11-3/+3
| | | | | | identi.ca to HTTPS while I'm at it. Pretty important since I can't use OAuth for it yet.
* Use /friends/ids and /users/lookup instead of /statuses/friends to get aWilmer van der Gaast2011-06-11-138/+134
| | | | | | list of contacts at login time. Still depends on adding an API version number to base_url though.
* Re-indent Twitter code. It just lacks *any* kind of consistency. Flags used:Wilmer van der Gaast2011-06-11-257/+204
| | | | | | -i8 -kr -ts8 -ut -l100 Because K&R isn't so bad after all but spaces are definitely evil. (Not that GNU indent understands how to use tabs, oh well.)
* Try to show better Twitter error messages. Sadly this doesn't always workWilmer van der Gaast2011-04-18-4/+2
| | | | | | since Twitter can't seem to make up their mind on the formatting of their error responses, sometimes using XML and sometimes plain text.
* For #721, add the numbers in front of tweets if show_ids is enabled. LeftWilmer van der Gaast2011-03-29-11/+59
| | | | | to do: Document the feature and allow using the numbers in rt/replies.
* s/Your Tweet:/You:/ to avoid using Twitter-specific terminology.Wilmer van der Gaast2011-02-24-1/+1
|
* When recreating the Twitter channel after the user left, also pre-populateWilmer van der Gaast2010-12-05-4/+12
| | | | | | it with all contacts. Also, don't force-rejoin the user into the channel on every poll, but only if there are new messages.
* Fix two compiler warnings.Wilmer van der Gaast2010-08-22-1/+1
|
* strptime() on FreeBSD (and possibly other non-glibc platforms) %z is notWilmer van der Gaast2010-08-11-1/+6
| | | | | | supported, so just insert the literal timezone there - let's hope Twitter won't ever change that.
* Add a few more commands (including RT) and the ability to send replies.Wilmer van der Gaast2010-08-08-6/+17
| | | | | | That's it for now, this is already not very pretty, but just offers the bare basic functionality.
* Allow protocol modules to keep per-contact protocol-specific data. UseWilmer van der Gaast2010-08-07-2/+15
| | | | | | this in the Twitter module to remember the id and timestamp of a contact's last tweet, which can later be used for simple replies/retweets.
* Add commands to the Twitter module, starting with undo (which deletesWilmer van der Gaast2010-08-07-0/+27
| | | | | either your most recent tweet, or a specific id (pass it as an argument)).
* OpenSolaris (non-gcc) fixes, patches from Dagobert Michelsen <dam@opencsw.org>Wilmer van der Gaast2010-08-07-0/+3
| | | | | with some changes.
* Reconstruct incoming truncated retweets.Wilmer van der Gaast2010-08-07-1/+26
|
* Store exact Twitter usernames for all Twitter contacts when using mode=chat,Wilmer van der Gaast2010-07-17-0/+5
| | | | | | so that xxx:->@xxx translation always works properly (even when the nick was stripped/etc).
* When using non-Twitter Twitter API services, prefix the channel and contactWilmer van der Gaast2010-07-17-2/+2
| | | | | | | | | | name with that service name, not always Twitter. This is especially useful when having multiple accounts on different sites with the same username. Also adding an "identica" protocol entry for convenience. Based on a patch from kensanata, bug #648.
* Merging mainline.Wilmer van der Gaast2010-07-17-1/+16
|\
| * Fix compatibility with older GLib versions again. (Bug #643, patch fromWilmer van der Gaast2010-07-15-0/+8
| | | | | | | | | | Robert Scheck.)
| * Fixing NULL pointer dereferences in Twitter module. Based on patch fromWilmer van der Gaast2010-07-13-1/+8
| | | | | | | | | | wahjava (bug #650).