summaryrefslogtreecommitdiff
path: root/classes
AgeCommit message (Collapse)Author
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-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-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.
2010-11-15Merge branch '0.9.x' of gitorious.org:statusnet/mainline into 0.9.xBrion Vibber
2010-11-15Workaround for yfrog.com photo attachments: fudge ↵Brion Vibber
File_redirection::lookupWhere()'s HTTP handling -- when we get a 204 on a HEAD, double-check it by re-running as a GET. yfrog.com returns a 204 incorrectly for this case.
2010-11-15doc comments on File::processNewBrion Vibber
2010-11-15Merge remote branch 'gitorious/0.9.x' into 0.9.xEvan Prodromou
2010-11-15Merge branch 'atompub' into 0.9.xEvan Prodromou
Conflicts: actions/apistatusesshow.php actions/apitimelineuser.php
2010-11-12Encapsulate the oEmbed -> oohembed fallback into oEmbedHelper class. Also ↵Brion Vibber
added a chance to whitelist sites that don't show discovery info but do have oEmbed API endpoints, and to provide alternate APIs for some common services. Newly supported: - TwitPic: added a local function using TwitPic's API, since the oohembed implementation for TwitPic produced invalid output which Services_oEmbed rejects. (bug filed upstream) Tweaked... - Flickr: works, now using whitelist to use their endpoint directly instead of going through oohembed - Youtube: worked around a bug in Services_oEmbed which broke the direct use of API discovery info, so we don't have to use oohembed. Not currently working... - YFrog: whitelisting their endpoint directly as the oohembed output is broken, but this doesn't appear to work currently as I think things are confused by YFrog's servers giving a '204 No Content' response on our HEAD checks on the original link.
2010-11-12Save oEmbed photo references as thumbnails if there's not a separate ↵Brion Vibber
thumbnail_url entry in the return data. This fixes thumb saving for Flickr photo references.
2010-11-09Allow YouTube-style media links to be counted as enclosures for purposes of ↵Brion Vibber
listing attachments/thumbs
2010-11-08Add attachments 'thumb_width' and 'thumb_height' settings for inline thumbs, ↵Brion Vibber
defaulting to 100x75. This is used as the max thumb width/height for oEmbed requests (replacing the old default of 500x400 which was more suitable for the lightbox).
2010-11-08Pass file attachment thumbnails along with oEmbed data.Brion Vibber
2010-11-08Save a thumbnail image when uploading an image file into the file ↵Brion Vibber
attachments system. Currently hardcoded to 100x75, needs aspect-sensitivity etc.
2010-11-08Testing... using photo info for temp thumbnailsBrion Vibber