summaryrefslogtreecommitdiff
path: root/classes
AgeCommit message (Collapse)Author
2010-12-16distribute flag for Notice::saveNew()Evan Prodromou
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-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
2010-11-08Avoid marking files as attachments that are not locally uploaded, unless ↵Brion Vibber
they're really oembedable. HTML-y things now excluded properly.
2010-11-04i18n/L10n updates.Siebrand Mazeland
2010-11-03Fix for ticket #2804: bad non-cache fallback code for dupe checks of ↵Brion Vibber
prolific posters The old code attempted to compare the value of the notice.created field against now() directly, which tends to explode in our current systems. now() comes up as the server/connection local timezone generally, while the created field is currently set as hardcoded UTC from the web servers. This would lead to breakage when we got a difference in seconds that's several hours off in either direction (depending on the local timezone). New code calculates a threshold by subtracting the number of seconds from the current UNIX timestamp and passing that in in correct format for a simple comparison. As a bonus, this should also be more efficient, as it should be able to follow the index on profile_id and created.
2010-11-03Fix for ticket #2853: fix for some unknown MIME type error cases by ↵Brion Vibber
adjusting the PEAR error handling temporarily around MIME_Type_Extension usage.
2010-11-03Add getFancyName() to User_group to match the one on Profile: encapsulates ↵Brion Vibber
the "fullname (nickname)" vs "nickname" logic and allows for localization of the parentheses in a common place.
2010-11-02Add context for different uses of "%1$s (%2$s)"Siebrand Mazeland
2010-11-02Alternate pretty-title tweaks for #2668Brion Vibber
2010-10-28fall back to siteowner on bad nickname (Bug#2861)Evan Prodromou