summaryrefslogtreecommitdiff
path: root/plugins
AgeCommit message (Collapse)Author
2010-12-20*cough* don't commit the code that breaks your code that you used to test ↵HEADmasterBrion Vibber
the debug code :D
2010-12-20Slightly fancier debug code for PuSH hmac mismatches -- save the post to a ↵Brion Vibber
temp file if feedsub/debug is on in config.
2010-12-20Logging helper for bogus hmacs on PuSH in -- record the url & hub with the ↵Brion Vibber
err msg to help tell what broke
2010-12-13TwitterBridge: partial merge of id_str usage from 0.9.x for improved 32-bit ↵Brion Vibber
and pre-5.2.10 compatibility. (on 64-bit in 5.2.6 we can pull the integer IDs, but silently lose some precision on the end.) Fixes for Twitter bridge breakage on 32-bit servers. New "Snowflake" 64-bit 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) Conflicts: plugins/TwitterBridge/twitterimport.php <- as this hasn't been broken out, the import code is NOT FULLY UPDATED HERE.
2010-12-08Tweak to PiwikAnalytics plugin to help browsers to pre-load piwik.js, may ↵Brion Vibber
shave a little off load time. Piwik's current default recommended JS for loading creates a <script> tag via document.write(). In addition to being generally evil, this means the browser doesn't know it's going to need piwik.js until that chunk of script gets executed... which can't happen until all scripts referenced *before* it have been loaded and executed. The only reason for that bit of script though seems to be to pick 'http' or 'https' depending on the current page's scheme. This can be done more simply by using a protocol-relative link (eg "//piwik.status.net/piwik.js"), which the browser will resolve as appropriate. Since it's now sitting in the <script> tag, the browser's lookahead code will now see it and be able to start loading it while earlier things are parsing/executing. May be better still to move to an asynchronous load after DOM-ready, but I'm not sure if that'll screw with the analytics code (eg, not being able to start things on the DOM-ready events since they're past).
2010-12-08Mapstraction plugin: use minified sources for OpenLayersBrion Vibber
The default full build of OpenLayers.js is 943kb as of 2.10; this gzips down to a couple hundred kb but is still rather nasty, plus loading it off a remote host could slow things down. Using a local copy let us cut down the size significantly by discarding unused features, and further minification with yui-compressor shaves a bit more off. Cuts down to about 1/5 the size of the original. Also threw in a bundled & minified copy of the Mapstraction classes plus our usermap.js, which covers the common case of using the default OpenLayers provider. This cuts out three additional script loads, two of which weren't getting launched until after the mxn.js main file got loaded.
2010-12-08Create a bundled & minified JS file for Mapstraction's common case (using ↵Brion Vibber
OpenLayers); this'll avoid waiting on additional script loads for mxn.core.js and mxn.openlayers.core.js, and removes the need to load usermap.js separately as well.
2010-12-08Add stripped and minified local copy of OpenLayers 2.10, about 1/5 the size ↵Brion Vibber
of the full version. Included Makefile will recreate the OpenLayers.js using the statusnet.cfg strip configuration file and yui-compressor to do some extra minification at the end. Requires fetching the OpenLayers source download and dropping it in: http://openlayers.org/download/OpenLayers-2.10.tar.gz
2010-12-07Quick hack to discard twitter broadcast queue items on failure *IF* config ↵Brion Vibber
option 'twitter' 'ignore_errors' is on: $config['twitter']['ignore_errors'] = true; A longer-term solution is to patch up the indirect retry handling to count retries better, or delay for later retry sensibly.
2010-11-30Flush router cache when saving Twitter admin settings: adding/removing keys ↵Brion Vibber
can enable/disable some actions. This avoids having users' Twitter settings unreachable after adding your keys to an installation with TwitterBridge on but not pre-configured.
2010-11-30BitlyPlugin: fix for shortening URLs containing ampersand (&)Brion Vibber
2010-11-22Update doc comment for Awesomeness pluginBrion Vibber
2010-11-22Tweak regex in Awesomeness pluginBrion Vibber
2010-11-20Added Awesomeness extensionJeroen De Dauw
2010-11-19Ticket #2724: gracefully handle attempts to delete or fave/unfave a remote ↵Brion Vibber
Twitter notice if a failure occurs. Most annoying error case being where the notice was already faved or deleted on Twitter! :) Such errors will now just fail out and log a note to the syslog -- the rest of what we were doing will continue on unhindered, so you can still delete, favorite, etc and it just won't sync the info over in that case.
2010-11-15Forgot to commit the JS for ModPlus. :)Brion Vibber
2010-11-15visual cleanup on ModPlus remote profile info popup menuBrion Vibber
2010-11-15Tweak remote profile action: hide stats from sidebar, tweak wording on ↵Brion Vibber
remote notice
2010-11-15RemoteProfileAction cleanup:Brion Vibber
- meta robots to prevent spidering - a little notice if silenced
2010-11-15visual tweaks for RemoteProfileActionBrion Vibber
2010-11-15RemoteProfileAction: redirect to the regular user profile page if given a ↵Brion Vibber
local user.
2010-11-15Stub RemoteprofileAction to show the standard profile header stuff for ↵Brion Vibber
offsite users -- provides a way to get at the mod & block controls for remote users.
2010-11-15Stub ModPlus plugin: will hold experimental UI improvements for mod actionsBrion Vibber
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-11-12don't try to initialize the mapstraction canvas if it doesn't existEvan Prodromou
2010-10-29Localisation updates from http://translatewiki.netSiebrand Mazeland
2010-10-28Merge branch '0.9.x' of gitorious.org:statusnet/mainline into 0.9.xBrion Vibber
2010-10-28Tweak for OAuth headers not seen in $_SERVERBrion Vibber
2010-10-28Merge branch '0.9.x' of git://gitorious.org/statusnet/mainline into 0.9.xSiebrand Mazeland
2010-10-28Localisation updates from http://translatewiki.net.Siebrand Mazeland
2010-10-27Merge branch 'instrument' into 0.9.xBrion Vibber
2010-10-27ApiLogger plugin: dumps some information about API hits to aid in ↵Brion Vibber
researching future HTTP-level cachability improvements. Data are sent to the 'info' level of logging, like so: [lazarus.local:4812.86b23603 GET /mublog/api/statuses/friends_timeline.atom?since_id=1353] STATLOG action:apitimelinefriends method:GET ssl:no query:since_id cookie:no auth:yes ifmatch:no ifmod:no agent:Appcelerator Titanium/1.4.1 (iPhone/4.1; iPhone OS; en_US;) Fields: * action: case-normalized name of the action class we're acting on * method: GET, POST, HEAD, etc * ssl: Are we on HTTPS? 'yes' or 'no' * query: Were we sent a query string? 'yes', 'no', or 'since_id' if the only parameter is a since_id * cookie: Were we sent any cookies? 'yes' or 'no' * auth: Were we sent an HTTP Authorization header? 'yes' or 'no' * ifmatch: Were we sent an HTTP If-Match header for an ETag? 'yes' or 'no' * ifmod: Were we sent an HTTP If-Modified-Since header? 'yes' or 'no' * agent: User-agent string, to aid in figuring out what these things are The most shared-cache-friendly requests will be non-SSL GET requests with no or very predictable query parameters, no cookies, and no authorization headers. Private caching (eg within a supporting user-agent) could still be friendly to SSL and auth'd GET requests. We kind of expect that the most frequent hits from clients will be GETs for a few common timelines, with auth headers, a since_id-only query, and no cookies. These should at least be amenable to returning 304 matches for etags or last-modified headers with private caching, but it's very possible that most clients won't actually think to save and send them. That would leave us expecting to handle a lot of timeline since_id hits that return a valid API response with no notices. At this point we don't expect to actually see if-match or if-modified-since a lot since most of our API responses are marked as uncacheable; so even if we output them they're not getting sent back to us. Random subsampling can be enabled by setting the 'frequency' parameter smaller than 1.0: addPlugin('ApiLogger', array( 'frequency' => 0.5 // Record 50% of API hits ));
2010-10-28i18n/L10n updates and superfluous whitespace removed.Siebrand Mazeland
2010-10-28* Superfluous whitespace removed.Siebrand Mazeland
* i18n review (no changes needed).
2010-10-26UI on profile settings page to opt out of following everyoneEvan Prodromou
2010-10-26flag to let users opt out of following everyoneEvan Prodromou
2010-10-26Plugin to follow all new users by defaultEvan Prodromou
2010-10-26can't subscribe to blacklisted domains/usersEvan Prodromou
2010-10-26Blacklist plugin checks PuSH and Salmon noticesEvan Prodromou
2010-10-23Localisation updates from http://translatewiki.net.Siebrand Mazeland
2010-10-23* onPluginVersion added.Siebrand Mazeland
* i18n fix: use _m() in plugins, don't use _() * some translator documentation added. * superfluous whitespace removed.
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-10-22RegisterThrottlePlugin tweak for silencing checks: make sure we don't crash ↵Brion Vibber
during registration if another profile registered from this address has been since deleted. Followup to commit 1caa08429f591b170da210d72f3501843f2bc657
2010-10-22Collective guilt for registrants from the same IP addressEvan Prodromou
If someone tries to register from an IP address that a silenced user has registered from, prevent it. When silencing someone, silence everyone else who registered from the same IP address.
2010-10-22Merge branch 'bettercachelog' into 0.9.xEvan Prodromou
2010-10-22Merge remote branch 'gitorious/0.9.x' into 0.9.xEvan Prodromou
2010-10-22more detailed information in cachelogpluginEvan Prodromou
2010-10-22Pass OAuth authorize page's mode paramater to OpenID plugin so it can create ↵Zach Copley
a correct returnto URL
2010-10-21Re-camelcase ApiOauthAuthorizeAction so it will be accessible whenZach Copley
a site is in pivate mode
2010-10-21OAuth - proper callback handling and better styling for authorizationZach Copley
page when in desktop mode