summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2010-12-14An action to delete your own accountEvan Prodromou
The new DeleteaccountAction lets a user delete their own account (subject to global rights set by the admin). It presents a form to delete the account, with an "I am sure." text entry box. It then schedules the account for deletion and logs the user out.
2010-12-13add an action to backup the current account in ActivityStreams formatEvan Prodromou
2010-12-13define rights for account maintenance and default rulesEvan Prodromou
2010-12-13define configuration settings for account maintenance securityEvan Prodromou
2010-12-13fix URL for memberships feedEvan Prodromou
2010-12-13add atompub membership actions to routerEvan Prodromou
2010-12-10Show a single favorite for AtomPubEvan Prodromou
2010-12-10Merge branch '0.9.x' into activityatompubEvan Prodromou
Conflicts: lib/router.php
2010-12-09Tweaking nickname format regexes: added one that explicitly allows numbers, ↵Brion Vibber
to be used in router setup.
2010-12-09Add subscription feed for AtomPubEvan Prodromou
2010-12-09AtomPub for single subscriptionEvan Prodromou
2010-12-08Don't cache user-specific information for Notice atom entriesEvan Prodromou
2010-12-07whitespace problems in lib/routerEvan Prodromou
2010-12-07generate links for apinamespace.org/atom and /twitter in userxrdEvan Prodromou
2010-12-07allow <Property> elements in <Link> in XRDEvan Prodromou
2010-12-07fix whitespace in lib/xrdaction.phpEvan Prodromou
2010-12-06use codeKey() in activity cachingEvan Prodromou
2010-12-06Merge branch '0.9.x' into cacheactivityEvan 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-06cache generated activity infoEvan Prodromou
2010-12-06Merge branch '0.9.x' of gitorious.org:statusnet/mainline into 0.9.xEvan Prodromou
2010-12-06correctly generate enclosure in Activity::asString()Evan Prodromou
2010-12-06Merge branch 'master' of gitorious.org:statusnet/mainline into 0.9.xBrion Vibber
Conflicts: classes/User.php
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-12-06remove common_debug() from Activity::asString()Evan Prodromou
2010-12-05Convert Notice::asAtomEntry() to use Notice::asActivity() and ↵Evan Prodromou
Activity::asString() We had two ways to generate an activity entry from a notice; one through Notice::asAtomEntry() and one through Notice::asActivity() and Activity::asString(). The code paths had already diverged somewhat. I took the conditions that were in Notice::asAtomEntry() and made sure they were replicated in the other two functions. Then, I rewrote Notice::asAtomEntry() to use the other two functions instead. This change passes the ActivityGenerationTests unit tests, but there may be some other stuff that's not getting covered.
2010-12-02Fix for tickets #2917, #2262: user URL shortening options not being applied ↵Brion Vibber
in non-web channels common_shorten_links() can only access the web session's logged-in user, so never properly took user options into effect for posting via XMPP, API, mail, etc. Adds an optional $user parameter on common_shorten_links(), and a $user->shortenLinks() as a clearer interface for that. Tweaked some lower-level functions so $user gets passed down -- making the $notice_id param previously there for saving URLs at notice save time generalized a little. Note also ticket #2919: there's a lot of duplicate code calling the shortening, checking the length, and reporting near-identical error messages. These should be consolidated to aid in code and translation maintenance.
2010-12-01Fix dumb mistake -- changed function names partway through writing Nickname ↵Brion Vibber
and forgot to update a couple places. :)
2010-11-30Merge branch 'master' into 0.9.xEvan Prodromou
Conflicts: lib/router.php
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-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-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-29Normalize username strings in command parsingBrion Vibber
2010-11-29General code safety: validate input and escape SQL strings in ↵Brion Vibber
common_relative_profile()
2010-11-29Use Nickname::DISPLAY_FMT instead of manual regex fragments in router setup ↵Brion Vibber
for nickname parameters.
2010-11-29Add Nickname test cases for @-reply regexes in common_find_mentionsBrion Vibber
2010-11-29Nickname class to encapsulate validation & common regexes for nickname formats.Brion Vibber
This provides initial infrastructure for decoupling display names from internal canonical names, but continues to have us storing and using the canonical forms. It should be/become possible to provide mixed-case and underscore-containing names in links, @-mention, !-group, etc, but we don't store those alternate forms generally.
2010-11-29Work in progress on nickname validation changes. lib/nickname.php appears to ↵Brion Vibber
have been destroyed by NetBeans and will be rewritten shortly. Sigh.
2010-11-29Add some doc comments on nickname-related stuff in util.phpBrion Vibber
2010-11-26Make userxrd work without OStatus enabledEvan Prodromou
2010-11-26Make userxrd part of the default hostmetaEvan Prodromou
2010-11-26Move user xrd action to core and use hooks to extendEvan Prodromou
Moved the Webfinger user XRD action from the OStatus plugin to core. Added hooks to add OStatus-specific stuff, but kept general stuff in the core.
2010-11-26move xrd and hostmeta out of the OStatus plugin and into coreCraig Andrews
add event for setting up hostmeta, and use them in the OStatus plugin
2010-11-19Merge branch 'master' into 0.9.xBrion Vibber
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 #2797: replace addslashes() with explicit escape calls on the DB objectsBrion Vibber