summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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-07Merge branch 'master' of gitorious.org:statusnet/mainlineBrion Vibber
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-12-06Merge branch 'master' of gitorious.org:statusnet/mainlineEvan Prodromou
2010-12-06Config flag to disable router caching if neededEvan Prodromou
2010-12-06use Cache::codeKey() in Router classEvan Prodromou
2010-12-06Make code-dependent cache entries more volatileEvan Prodromou
If a cache entry is dependent on the code that's running, upgrading (or enabling/disabling plugins) can generate hard-to-track inconsistencies. This change adds a close-to-unique fingerprint of the running code to some cache keys, so that if the fingerprint changes, the old values are ignored and new values are used. If the automated uniqueness fails, an administrator can add an extra config value, $config['site']['build'], that's thrown into the key also.
2010-12-06Added User::singleUserNickname() as (temporary?) fallback for single-user ↵Brion Vibber
lookup as a workaround for site setup of 1user sites. We found that an external tool attempting to spin up StatusNet and then register the user would fail because StatusNet's router setup dies on being unable to find its single-user account, since the nickname is needed in setting up routing entries. This tweak will let it survive, using the configured setting as a fallback if it can't actually find the user account.
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-30was using Cache::get() and ::set() wrongEvan Prodromou
2010-11-30a quick script to flush the router from cache if neededEvan Prodromou
2010-11-30use a CRC32 of the plugin names rather than actual namesEvan Prodromou
2010-11-30Squashed commit of the following:Evan Prodromou
commit 39fdd181d95d2c39a3ea1ca330b10a99a92b961f Author: Evan Prodromou <evan@status.net> Date: Mon Nov 29 10:37:49 2010 -0500 use cache key prefix for router cache key commit 4cb9e56941922489b83d6425c059cf770991e68f Author: Evan Prodromou <evan@status.net> Date: Mon Nov 29 10:31:21 2010 -0500 use a unique hashkey based on the software version and loaded plugins commit 44458b48aef719543e11f83b41fded65cbcb8be9 Author: Evan Prodromou <evan@status.net> Date: Sat Nov 27 17:04:15 2010 -0500 cache the NUM object commit 809c188307a9b4ada15f3d7fa573a6034341efef Author: Evan Prodromou <evan@status.net> Date: Sat Nov 27 15:44:12 2010 -0500 accelerate routing by pivoting paths on actions
2010-11-26Revert "Ticket #2796: don't allow arbitrary overriding of the 'action' class ↵Evan Prodromou
and other parameters pulled from the URL mapper." This reverts commit 4193a826d3500c1c8771e2a55ca197011fe637c8.
2010-11-22Update doc comment for Awesomeness pluginBrion Vibber
2010-11-22Tweak regex in Awesomeness pluginBrion Vibber
2010-11-22Merge commit 'refs/merge-requests/2224' of ↵Brion Vibber
git://gitorious.org/statusnet/mainline into int
2010-11-22Fixes for delete_status_network.sh:Brion Vibber
* add some sanity checking: abort on failures instead of plodding through * add some progress / error output * fetch the target database server name from the status_network entry and use that to target the DROP DATABASE Note that database names and other overrides in status_network entry may still not be seen.
2010-11-20Added Awesomeness extensionJeroen De Dauw
2010-11-19Fix ticket #2700: some numeric IDs were misinterpreted as hex numbers ↵Brion Vibber
instead of strings when '0x123' passed in. Switched from is_numeric() to a custom self::is_decimal() which is more strict. This makes our behavior match Twitter's API a bit better, so eg this: http://identi.ca/api/statuses/home_timeline/0x6d686b.xml should now be equivalent to: http://identi.ca/api/statuses/home_timeline.xml?screen_name=0x6d686b instead of: http://identi.ca/api/statuses/home_timeline.xml?user_id=7170155
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-19Ticket #2796: don't allow arbitrary overriding of the 'action' class and ↵Brion Vibber
other parameters pulled from the URL mapper. This protects against oddities such as manual invocation of the ClientError action, which can spoof error messages.
2010-11-19Ticket #1987: support since_id on API notice search methods.Brion Vibber
max_id is not yet implemented, as it'll need support added to the search backends. (since_id we get 'for free' by just cropping off the list, it'll do for now)
2010-11-19Ticket #2441: fix deletion of avatars when a profile is deleted.Brion Vibber
Code was doing a batch call to $avatar->delete() which fails to properly engage the file deletion code. Calling the existing profile->delete_avatars() function deletes them individually, which makes it all work nice again.
2010-11-19Ticket #2899: clean up inbox/outbox DM form a bit:Brion Vibber
- "To" drop-down list now defaults to showing "Select recipient:" instead of the first person on your list, reducing liklihood of accidentally sending a message to the wrong person. - When there are no mutual subscribers to send to, instead of an empty list the list now shows 'No mutual subscribers.' In both cases, attempting to send when the default is selected displays an error message. I'm not disabling form elements in part because our themes right now don't show disabled button state correctly; we might want to tighten that up a bit more once fixed.
2010-11-18scripts/deletegroup.php -- basic CLI script to delete a group by id or local ↵Brion Vibber
nickname. Like deleteuser.php, this can be used in batch runs by providing the -y override.
2010-11-18Fix regression in PopularNoticeSection: tag parameter was broken, causing ↵Brion Vibber
sidebar on tag pages to show untagged favorites.
2010-11-16Ticket 2895: exclude silenced users from popular notice listsBrion Vibber
2010-11-16Prep for ticket #2895: consolidate common code from PopularNoticeList and ↵Brion Vibber
FavoritedAction for fetching popular notice lists
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-15Workaround for display of Twitter remote users in remoteprofile (ModPlus ↵Brion Vibber
plugin): use 73px avatar if no 96px present
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-15some User -> Profile cleanup to help in adapting the profile page action to ↵Brion Vibber
show stuff for remote users. Subscriptions, groups, roles, etc are all on profiles now so go ahead and use em.
2010-11-15Stub ModPlus plugin: will hold experimental UI improvements for mod actionsBrion Vibber
2010-11-15clear_jabber.php script to clear confirmed jabber/xmpp addresses from one or ↵Brion Vibber
more accounts
2010-11-12fix syntax error introduced in i18n tweaks: newgroup actionBrion Vibber
2010-11-12Revert "Missing one close-paren in newgroup.php" - incorrect fix for paren bugBrion Vibber
This reverts commit 3afb031d9270a29db7f1ac4a964bb4b796759827.
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-11-11Fix missing close of comment blockZach Copley
2010-11-10Add error logging for a couple send-fail cases in XMPP outBrion Vibber