aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/twitter/twitter_lib.c
Commit message (Collapse)AuthorAgeLines
...
* 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).
* | A few Twitter fixes from mainline.Wilmer van der Gaast2010-07-01-9/+13
|\|
| * D'oh. Of course the getter functions should also treat next_cursor as aWilmer van der Gaast2010-06-30-7/+7
| | | | | | | | | | | | 64-bit integer. This code now successfully fetches lists with up to ~900 items. (Since this takes quite long, maybe there should be an upper limit.)
| * next_cursor is a 64-bit integer. Make it so. This should fix issues withWilmer van der Gaast2010-06-30-3/+7
| | | | | | | | | | | | | | | | getting contact lists containing >100 people. I'm still not getting a full list but even Twitter claims I'm at the end of the list. Will investigate later.
* | Merging bugfix from mainline.Wilmer van der Gaast2010-06-26-4/+8
|\|
| * Don't create multiple main loops if the user follows >100 people.Wilmer van der Gaast2010-06-24-4/+8
| |
* | Merging a few revisions from mainline.Wilmer van der Gaast2010-06-24-15/+34
|\|
| * Load the whole Twitter contact list at login time if mode=chat/many,Wilmer van der Gaast2010-06-24-15/+34
| | | | | | | | | | | | instead of adding contacts as they post tweets. Also in mode=chat, populate the channel *before* adding the user to it, avoiding a flood of joins.
* | Merging head.Wilmer van der Gaast2010-06-01-19/+53
|\|
| * Merge from Geert: Added ability to follow/unfollow Twitter people. (UnfollowWilmer van der Gaast2010-05-30-5/+13
| |\ | | | | | | | | | | | | won't work with mode=one.)
| | * Added functionality to add and remove friendships.Geert Mulders2010-05-29-5/+18
| | |
| * | Restructure Twitter error parser a bit, it fed a NULL pointer to the XMLWilmer van der Gaast2010-05-23-17/+16
| | | | | | | | | | | | | | | parser sometimes (which fails safely but is a bad idea anyway).
| * | Improved error reporting (get textual HTTP error message and error messageWilmer van der Gaast2010-05-23-12/+36
| | | | | | | | | | | | | | | from Twitter API response if possible).
| * | Added base_url settting to Twitter module so other services using theWilmer van der Gaast2010-05-23-5/+5
| | | | | | | | | | | | | | | Twitter API can be used. Only with Basic authentication though.
| * | Setting the HTML flag on a connection has a nasty side effect of escapingWilmer van der Gaast2010-05-19-0/+3
| |/ | | | | | | | | | | | | | | | | | | | | a lot of "special" characters, and these HTML entities are not counted as one character. :-( So just strip HTML of incoming stuff and don't do anything with what goes out. It's not required. The story may actually be more complicated this, let's find out.
* | Mainline merge.Wilmer van der Gaast2010-05-03-11/+38
|\|
| * Cleaned up OAuth stuff: consumer key/secret should *not* be in lib/oauth.c.Wilmer van der Gaast2010-05-01-6/+6
| | | | | | | | | | | | Keep it in the Twitter module, and use the oauth_info struct through the whole session to keep all this together.
| * Successfully posted a tweet!Wilmer van der Gaast2010-04-26-5/+5
| | | | | | | | | | | | | | | | | | | | Twitter's tricky. It returns vars (user_id, screen_name) in the access token that, the way I read the spec, should be included in all subsequent queries. However, stuff only started to work when I dropped those vars. This code's definitely not pretty ATM. Need to clean up now that it actually works.
| * Since the home/timeline response can (and often does) come in before theWilmer van der Gaast2010-04-16-0/+2
| | | | | | | | | | | | user list, call twitter_add_buddy() on all incoming tweets to avoid getting tweets from people who aren't listed yet.
| * Added a meta-contact twitter_$username and replaced the "use_groupchat"Wilmer van der Gaast2010-04-16-5/+30
| | | | | | | | | | | | | | setting with a "mode" setting which also allows for a mode where everything just comes from the meta-contact. Tweets should now go to that user or to the channel (if available). Messages to others become DMs.
* | Merging loads of stuff from mainline.Wilmer van der Gaast2010-04-14-1/+1
|/
* Small Valgrind noise fix. (Check if the conn is still alive before gettingWilmer van der Gaast2010-04-14-4/+9
| | | | | its private data.)
* Suppress HTTP error messages unless we get five or more in a row.Wilmer van der Gaast2010-04-13-4/+31
|
* Use full name information of Twitter buddies.Wilmer van der Gaast2010-04-13-3/+4
|
* Added imcb_chat_nick_hint() and use it in the Twitter module to get sanerWilmer van der Gaast2010-04-09-0/+3
| | | | | | | channel names. This also closes bug #577, making the Skype module a bit nicer.
* Parse timestamps in tweets.Wilmer van der Gaast2010-04-08-5/+13
|
* In groupchat mode, make contacts show up in the room instead of in &bitlbee. Wilmer van der Gaast2010-04-07-1/+6
| | | | | And clean up the room when disabling the Twitter account.
* A little more cleanup.Wilmer van der Gaast2010-04-07-32/+7
|
* Killed unused twitter_urldecode() and silence some compiler warnings.Wilmer van der Gaast2010-04-07-1/+1
|