summaryrefslogtreecommitdiff
path: root/classes
AgeCommit message (Collapse)Author
2010-12-22Merge branch '0.9.x' into 1.0.xBrion Vibber
2010-12-22Merge branch 'righttoleave' into 0.9.xEvan Prodromou
2010-12-17Merge branch '0.9.x' into 1.0.xBrion Vibber
Conflicts: classes/Memcached_DataObject.php
2010-12-17Update sorting for conversation views: adds ↵Brion Vibber
notice_conversation_created_id_idx index on notice, replacing more limited notice_conversation_idx
2010-12-17Update sorting for User::repeatedByMe() -- currently unused. Likely not ↵Brion Vibber
ideally indexed yet.
2010-12-17Update sorting on api/statuses/retweets_of_me; was and remains poorly ↵Brion Vibber
indexed, but will use updated sorting method.
2010-12-17Update sorting on api/statuses/retweets: adds ↵Brion Vibber
notice_repeat_of_created_id_idx index to replace notice_repeatof_idx
2010-12-17work around borkage in statuses/repeats -- tries to check an offset var ↵Brion Vibber
that's not there. use the limit var which is there instead
2010-12-17Update sorting for group inbox timelines; adds ↵Brion Vibber
group_inbox_group_id_created_notice_id_idx index to group_inbox table
2010-12-17Update sorting on reply/mentions timeline: added ↵Brion Vibber
reply_profile_id_modified_notice_id_idx index to reply table
2010-12-17Update sorting for tag-filtered public timeline: needs ↵Brion Vibber
notice_tag_tag_created_notice_id_idx index added to notice_tag
2010-12-17add fixme for since_id/max_id on fave streaming (?)Brion Vibber
2010-12-17Update sorting for user tagged timelines (indexing was bad before and ↵Brion Vibber
remains bad -- we need some DB changes to make this one nice)
2010-12-17Update notice sorting for profile streams; extract more common code to ↵Brion Vibber
Notice::addSinceId() and Notice::addMaxId()
2010-12-17Notice::whereSinceId() and Notice::whereMaxId() encapsulate logic for ↵Brion Vibber
building where clauses for since_id/max_id parameters. Can override the field names from 'id' and 'created'.
2010-12-17Initial switch of public timeline stream to use timestamps for internal sortingBrion Vibber
2010-12-17Notice::getAsTimestamp() static function to look up the timestamp for a ↵Brion Vibber
given notice, even if it's been deleted. To be used for converting since_id/max_id processing to use timestamp sorting internally.
2010-12-17Event hook for SQLProfileBrion Vibber
2010-12-16distribute flag for Notice::saveNew()Evan Prodromou
2010-12-15Merge branch '0.9.x' into 1.0.xBrion Vibber
2010-12-13define rights for account maintenance and default rulesEvan Prodromou
2010-12-13Merge branch 'activityatompub' into 0.9.xEvan Prodromou
2010-12-13membership stream method and return membership from join() in Group_member classEvan Prodromou
2010-12-13group_member includes self link, edit linkEvan Prodromou
2010-12-12Move getConnectedApps() from Profile to User, where it belongsZach Copley
2010-12-12a stream function for Fave classEvan Prodromou
2010-12-11Merge branch '0.9.x' into activityatompubEvan Prodromou
2010-12-11Merge branch '0.9.x' of gitorious.org:statusnet/mainline into 0.9.xEvan Prodromou
2010-12-11cache stream of subscriptionsEvan Prodromou
2010-12-11Subscription stream functionsEvan Prodromou
Made two new functions, Subscription::bySubscriber() and Subscription::bySubscribed(), to get streams of Subscription objects. Converted Profile::getSubscribers() and Profile::getSubscriptions() to use these functions.
2010-12-10Show a single favorite for AtomPubEvan Prodromou
2010-12-10Workaround for locally-handled sessions breaking on PHP 5.3 with APC enabled.Brion Vibber
Big thanks to the folks at http://pecl.php.net/bugs/bug.php?id=16745 for the secret juju! Classes were being torn down before session save handlers got called at the end of the request, which exploded with complaints about being unable to find various classes. Registering a shutdown function lets us explicitly close out the session before everything gets torn down.
2010-12-09AtomPub for single subscriptionEvan Prodromou
2010-12-08Don't cache user-specific information for Notice atom entriesEvan Prodromou
2010-12-08Don't cache user-specific information for Notice atom entriesEvan Prodromou
2010-12-07Merge branch '0.9.x' into mergeBrion Vibber
Conflicts: README actions/hostmeta.php classes/File_redirection.php lib/common.php lib/designsettings.php lib/router.php lib/util.php lib/xmppmanager.php plugins/OStatus/OStatusPlugin.php
2010-12-06use codeKey() in activity cachingEvan Prodromou
2010-12-06cache generated activity infoEvan 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-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-02URL shortening fix for direct messages: if we're going to shorten the text, ↵Brion Vibber
shorten the rendered text too.
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-11-29doc comments on User::allowed_nicknameBrion Vibber
2010-11-19Ticket #2797: replace addslashes() with explicit escape calls on the DB objectsBrion Vibber
2010-11-19Merge branch 'master' of gitorious.org:statusnet/mainline into 0.9.xBrion Vibber
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-17Add $config['attachments']['process_links'] to allow disabling processing of ↵Brion Vibber
mentioned URL links for attachment info (oEmbed lookups) and dereferencing of redirects that we didn't have shortened ourselves. This option may be useful for intranet sites that don't have direct access to the internet, as they may be unable to successfully fetch those resources.
2010-11-15Merge branch 'master' of gitorious.org:statusnet/mainline into 0.9.xBrion Vibber
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.