summaryrefslogtreecommitdiff
path: root/plugins/TwitterBridge/twitter.php
AgeCommit message (Collapse)Author
2010-12-17Update Twitter calls to use documented API endpointsZach Copley
see: http://groups.google.com/group/twitter-api-announce/msg/34b013f4d092737f
2010-11-23Fixes for Twitter bridge breakage on 32-bit servers. New "Snowflake" 64-bit ↵Brion Vibber
IDs have become too big to fit in the integer portion of double-precision floats, so to reliably use these IDs we need to pull the new string form now. Machines with 64-bit PHP installation should have had no problems (except on Windows, where integers are still 32 bits)
2010-11-12Fix for failure edge case in TwitterBridge outgoing repeat/retweets.Brion Vibber
When the retweet failed with a 403 error (say due to it being a private tweet, which can't be retweeted) we would end up mishandling the return value from our internal error handling. Instead of correctly discarding the message and closing out the queue item, we ended up trying to save a bogus twitter<->local ID mapping, which threw another exception and lead the queue system to re-run it. - Fixed the logic check and return values for the retweet case in broadcast_twitter(). - Added doc comments explaining the return values on some functions in twitter.php - Added check on Notice_to_status::saveNew() for empty input -- throw an exception before we try to actually insert into db. :)
2010-10-22Fix for 140-char replies being unexpectedly cropped when bridged to Twitter.Brion Vibber
This drops the '@' -> ' @' hack for CURL meta-chars in outgoing Twitter bridge, added in commit 04b95c25 back in the day. The Twitter bridge has since been switched from using direct CURL calls to using HTTPClient, which even with the CURL backend enabled doesn't trigger this issue, as POST parameters are formatted directly. Prepending the space before we did the message cropping was leading to 140-char messages getting cropped unnecessarily, which was confusing: Examples of broken messages: http://identi.ca/notice/57172587 vs http://twitter.com/marjoleink/status/28398050691 http://identi.ca/notice/57172878 vs http://twitter.com/marjoleink/status/28398492563
2010-09-19* Remove trailing newline in e-mail message.Siebrand Mazeland
* Superfluous whitespace removed.
2010-09-19* i18n/L10n updates.Siebrand Mazeland
* add FIXMEs for bad i18n. * add translator hints.
2010-09-18* i18n/L10n updatesSiebrand Mazeland
* whitespace updates.
2010-09-07using null variable in twitter_status_id()Evan Prodromou
2010-09-07check status_id before trying to retweet itEvan Prodromou
2010-09-07Save notice-to-status mapping in its own tableEvan Prodromou
Introduce a table mapping notices to Twitter statuses. Initialize this table at checkSchema() time. Save the mapping when we push or pull statuses. Use the table to determine if a notice has a Twitter equivalent.
2010-09-07add in_reply_to_status_id if notice is from twitterEvan Prodromou
2010-09-07remove require_once for disappeared TwitterBasicAuthClientEvan Prodromou
2010-09-07remove basic auth code for Twitter since it's no longer supportedEvan Prodromou
2010-09-07do a real retweet for a local repeatEvan Prodromou
2010-09-07push notices through the bridge if they're in reply to a twitter noticeEvan Prodromou
2010-07-08Handle the case where a screen name has shifted from one Twitter ID to anotherZach Copley
2010-05-19Locale switch cleanup: use common_switch_locale() which is safer for ↵Brion Vibber
updating gettext state. Also moved a few calls to reduce chance of hitting an exception before switching back. Should help with problems where xmppdaemon would get stuck in wrong locale.
2010-04-14Ticket #2205: pass geo locations over Twitter bridge (will only be used if ↵Brion Vibber
enabled on the Twitter side)
2010-03-05A better way to safely delete Foreign_linksZach Copley
2010-03-05Fix for errant deletion of all Twitter foreign_linksZach Copley
2010-02-17Twitter bridge - fix for Ticket #2192Zach Copley
2010-02-15Use static class method for looking up Twitter userZach Copley
2010-02-15Twitter-bridge: lookup old foreign_user by primary key not urlZach Copley
2010-02-15Better log msgs. Removed debugging statement.Zach Copley
2010-02-15Fix for regression introduced with my last update to theZach Copley
TwitterStatusFetcher: the Twitter bridge was not saving a foreign user record when making a foreign link.
2010-02-06Delete old Twitter user record when user changes screen name instead of ↵Zach Copley
updating. Simpler.
2010-02-04Make Twitter bridge truncate and add a link back to the original notice when ↵Zach Copley
notice content is > 140c
2010-01-13When Twitter bridge encounters a 403 (rate limit) err, drop the noticeZach Copley
instead of requeuing.
2009-12-18Followup fix for ticket 1672: Twitter bridge !group->#hash conversion will ↵Brion Vibber
now happen regardless of whether account was configured with oauth or basic auth (previously applied only on the oauth path)
2009-12-14Fix Twitter bridge so it responds reasonably to authorization errors.Zach Copley
2009-12-08New _m() gettext wrapper with smart detection of plugin domains. Plugin base ↵Brion Vibber
class registers your gettext files if present at initialization. update_pot.sh replaced with update_po_templates.php which can do core, plugins, or all (default). Top-level Makefile added to build .mo files for plugins as well as core. As described on list: http://lists.status.net/pipermail/statusnet-dev/2009-December/002869.html
2009-11-25Catch uncaught exceptionZach Copley
2009-11-09Revert "Remove more contractions"Brion Vibber
This reverts commit 5ab709b73977131813884558bf56d97172a7aa26. Missed this one yesterday...
2009-11-08Remove more contractionsSiebrand Mazeland
* doesn't * won't * isn't * don't
2009-11-02Rebuilt HTTPClient class as an extension of PEAR HTTP_Request2 package, ↵Brion Vibber
adding redirect handling and convenience functions. Caching support will be added in future work after unit tests have been added. * extlib: add PEAR HTTP_Request2 0.4.1 alpha * extlib: update PEAR Net_URL2 to 0.3.0 beta for HTTP_Request2 compatibility * moved direct usage of CURL and file_get_contents to HTTPClient class, excluding external-sourced libraries * adapted GeonamesPlugin for new HTTPResponse interface Note some plugins haven't been fully tested yet.
2009-11-02Revert "Rebuilt HTTPClient class as an extension of PEAR HTTP_Request2 ↵Brion Vibber
package, adding redirect handling and convenience functions." Going to restructure a little more before finalizing this... This reverts commit fa37967858c3c29000797e510e5f98aca8ab558f.
2009-11-02Rebuilt HTTPClient class as an extension of PEAR HTTP_Request2 package, ↵Brion Vibber
adding redirect handling and convenience functions. Caching support will be added in future work after unit tests have been added. * extlib: add PEAR HTTP_Request2 0.4.1 alpha * extlib: update PEAR Net_URL2 to 0.3.0 beta for HTTP_Request2 compatibility * moved direct usage of CURL and file_get_contents to HTTPClient class, excluding external-sourced libraries Note some plugins haven't been tested yet.
2009-10-23Move Twitter and Facebook-specific mail notifications to their respective ↵Zach Copley
plugins
2009-10-14Make queuing and daemons work via eventsZach Copley
2009-10-13Merge branch '0.9.x' into pluginize-twitter-bridgeZach Copley
* 0.9.x: (247 commits) Added in credits. Use site's name for basic auth realm Make apigroupcreate.php pass phpcs Took out some unnecessary intializations Implemented create group api CamelCase all function names in the API code These same params are used in most API actions; moved to base API class Missed some of the references to the old TwitterApiAction - removed Remove more redundant $formats Remove dead code Move all basic auth output and processing to base classes $format is used by every API action. Set it in the base class. Delete action/api.php and rename lib/twitterapi.php to lib/api.php New actions for blocks via API fix FBConnect so it doesn't muffle EndPrimaryNav don't write session if it's unchanged Fixed facebook connect primary nav to hide search option when site is private and user is not logged in Fixed facebook connect primary nav to obey sms/twitter/openid settings Fixed facebook connect login nav to obey openid settings Fixed facebook connect nav to obey sms/twitter disabled ...
2009-09-08Merge branch '0.9.x' into pluginize-twitter-bridgeZach Copley
Conflicts: plugins/TwitterBridge/twitterauthorization.php
2009-08-26Moved the rest of the Twitter stuff into the TwitterBridge pluginZach Copley