summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
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-30was using Cache::get() and ::set() wrongEvan 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-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 #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 #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-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-15RemoteProfileAction cleanup:Brion Vibber
- meta robots to prevent spidering - a little notice if silenced
2010-11-15Workaround for display of Twitter remote users in remoteprofile (ModPlus ↵Brion Vibber
plugin): use 73px avatar if no 96px present
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-10Add error logging for a couple send-fail cases in XMPP outBrion Vibber
2010-10-29Merge remote branch 'gitorious/master'Evan Prodromou
2010-10-29add a hack to show ads on single-notice pagesEvan Prodromou
2010-10-28Kill a ping queue item if we get an error on loading up the notice's ↵Brion Vibber
poster's profile, rather than letting the item be retried over and over as if it were a transitory error. This shouldn't generally happen as it's an indicator of database inconsistency, but it's a condition we know happens.
2010-10-26Set cookies with "secure" flag on SSL sites. Improves security.testingCraig Andrews
2010-10-25Forgot to add the OAuth verifier pin page to sensitive arrayZach Copley
2010-10-25We don't need to have editapplication (only showapplication) in theZach Copley
sensitive array because it doesn't expose the consumer keypair
2010-10-25Add OAuth token exchange endpoint to 'sensitive' array; i.e.: use SSL ifZach Copley
available
2010-10-22Additional fixes found while looking at ticket #2532: when given a screen ↵Brion Vibber
name as API parameter for a profile, do the nickname lookup on local users only. The profile table can't guarantee unique lookups, so using names isn't currently safe there. This won't affect anything using local nicknames correctly, and may avoid some weird bugs if there were conflicts between local and remote nicknames.
2010-10-22Fix for ticket #2532: fixed API block create/destroy when specifying the ↵Brion Vibber
target user/profile as a separate query parameter, such as api/blocks/create.xml?param=xxx The router settings weren't quite right so we ended up with bogus regex values passed in as the 'id' parameter, which broke the regular fallback ordering of parameter checks.
2010-10-22Normalize HTML body ids to lowercase when the user is logged out as well.Zach Copley
2010-10-21Workaround for http_build_query() oddities in low-level router parent code ↵Brion Vibber
when PHP config is set with non-default separator.
2010-10-21Re-camelcase ApiOauthAuthorizeAction so it will be accessible whenZach Copley
a site is in pivate mode
2010-10-21Normalize all action HTML body ids to lowercaseZach Copley
2010-10-21Change OAuth authorization page's action name to be inline withZach Copley
other web page action names so the body id outputs correctly. Fix some other bugs.
2010-10-21Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.xZach Copley
2010-10-21Fix syntax errorZach Copley
2010-10-21i18n/L10n updates, translator docs updated, superfluous whitespace removed.Siebrand Mazeland
2010-10-20Merge branch '0.9.x' of gitorious.org:statusnet/mainline into 0.9.xZach Copley
Conflicts: actions/apioauthauthorize.php lib/apioauthstore.php
2010-10-20Use a new table (oauth_token_association) to associate authorizedZach Copley
request tokins with OAuth client applications and profiles.
2010-10-21* translator documentation added.Siebrand Mazeland
* moved some translator comments that were not directly above the line with the message to the correct location. * i18n for UI text. * superfluous whitespace removed.
2010-10-20Fix for ticket #2845: singleuser nickname configuration was being overridden ↵Brion Vibber
by site owner in router setup. I've consolidated the checks for which user to use for single-user mode into User::singleUser(), which now uses the configured nickname by preference, falling back to the site owner if it's unset. This is now called consistently from the places that needed to use the primary user's nickname in routing setup. Setting $config['singleuser']['nickname'] should now work again as expected.
2010-10-20Add FIXMESiebrand Mazeland
2010-10-20* i18n/L10n fixes.Siebrand Mazeland
* translator documentation updated/added. * superfluous whitespace removed.
2010-10-20Merge branch '0.9.x' of git://gitorious.org/statusnet/mainline into 0.9.xSiebrand Mazeland
2010-10-20Fix nasty bug in parameter for e-mail notification for favourite.Siebrand Mazeland
2010-10-19Merge branch 'anon-consumer' into 0.9.xZach Copley
2010-10-19Add support for an anonymous OAuth consumer. Note: this requires aZach Copley
small DB tweak. Oauth_application_user needs to have the primary compound key: (profile_id, application_id, token). http://status.net/open-source/issues/2761 This should also make it possible to have multiple access tokens per application. http://status.net/open-source/issues/2788
2010-10-20More complete sentence and translator documentation added.Siebrand Mazeland
2010-10-20Many i18n/L10n updates and lots of descriptions for translators added.Siebrand Mazeland
2010-10-19Merge branch '0.9.x' of gitorious.org:statusnet/mainline into 0.9.xZach Copley
2010-10-19OAuth - better log messagesZach Copley
2010-10-18Bump version/string: 0.9.6 "Man on the Moon"Brion Vibber