summaryrefslogtreecommitdiff
path: root/actions/apistatusesupdate.php
AgeCommit message (Collapse)Author
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-03Fix ticket #2860: clarify API doc comments for 'source' parameter's ↵Brion Vibber
interaction with OAuth on api/statuses/update
2010-10-28* i18n/L10n fixes.Siebrand Mazeland
* translator documentation updated. * superfluous whitespace removed.
2010-10-20* i18n/L10n fixes.Siebrand Mazeland
* translator documentation updated/added. * superfluous whitespace removed.
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-09-12Add translator hint.Siebrand Mazeland
2010-07-29Fix for issue ID 2290: make sure errors are returned in the rightZach Copley
format, and use callback for errors when the request is JSONP
2010-07-29Return HTTP 403 instead of 400 when silenced users try to post via APIZach Copley
2010-05-27Assigning my copyrights to the Free Software FoundationCraig Andrews
2010-05-07Fix for repeats from the API having null source attributionZach Copley
2010-04-22Some initial Doxygen-based documentation for the APIZach Copley
2010-04-10Fix inconsistencies in clientError() messagesSiebrand Mazeland
* use correct punctuation * single quotes when replace was possible * wording updated when needed
2010-03-18API - handle any exceptions thrown during notice save. The API wasZach Copley
occasionally spitting out HTML, which is hard for clients to deal with.
2010-01-27- Check for read-only vs. read-write access to protected API resources (OAuth)Zach Copley
- Some cleanup
2010-01-25Merge branch 'master' into testingEvan Prodromou
Conflicts: lib/queuemanager.php
2010-01-25Offload inbox updates to a queue handler to speed up posting onlineEvan Prodromou
Moved much of the writing that happens when posting a notice to a new queuehandler, distribqueuehandler. This updates tags, groups, replies and inboxes at queue time (or at Web time, if queues are disabled). To make this work well, I had to break up the monolithic Notice::blowCaches() and make cache blowing happen closer to where data is updated. Squashed commit of the following: commit 5257626c62750ac4ac1db0ce2b71410c5711cfa3 Author: Evan Prodromou <evan@status.net> Date: Mon Jan 25 14:56:41 2010 -0500 slightly better handling of blowing tag memory cache commit 8a22a3cdf6ec28685da129a0313e7b2a0837c9ef Author: Evan Prodromou <evan@status.net> Date: Mon Jan 25 01:42:56 2010 -0500 change 'distribute' to 'distrib' so not too long for dbqueue commit 7a063315b0f7fad27cb6fbd2bdd74e253af83e4f Author: Evan Prodromou <evan@status.net> Date: Mon Jan 25 01:39:15 2010 -0500 change handle_notice() to handle() in distributqueuehandler commit 1a39ccd28b9994137d7bfd21bb4f230546938e77 Author: Evan Prodromou <evan@status.net> Date: Mon Jan 25 16:05:25 2010 -0500 error with queuemanager commit e6b3bb93f305cfd2de71a6340b8aa6fb890049b7 Author: Evan Prodromou <evan@status.net> Date: Mon Jan 25 01:11:34 2010 -0500 Blow memcache at different point rather than one big function for Notice class commit 94d557cdc016187d1d0647ae1794cd94d6fb8ac8 Author: Evan Prodromou <evan@status.net> Date: Mon Jan 25 00:48:44 2010 -0500 Blow memcache at different point rather than one big function for Notice class commit 1c781dd08c88a35dafc5c01230b4872fd6b95182 Author: Evan Prodromou <evan@status.net> Date: Wed Jan 20 08:54:18 2010 -0500 move broadcasting and distributing to new queuehandler commit da3e46d26b84e4f028f34a13fd2ee373e4c1b954 Author: Evan Prodromou <evan@status.net> Date: Wed Jan 20 08:53:12 2010 -0500 Move distribution of notices to new distribute queue handler
2010-01-25- Had to remove checking read vs. read-write in OAuth authenticated methodsZach Copley
- Will now pick up source attr from OAuth app
2009-12-28Move location-argument-handling code into a single functionEvan Prodromou
Moved the important parts of the location-argument-handling stuff to a single function. Handles defaults and overrides correctly, and easy to use. Changed Web and API channels to use it.
2009-12-11fix typo in API arg creationEvan Prodromou
2009-12-11change Notice::saveNew() to use named arguments for little-used optionsEvan Prodromou
2009-11-18Notice: Undefined variable: source in actions/apistatusesupdate.php on line 88Brion Vibber
2009-11-10add lat and long parameters to api/statuses/updateEvan Prodromou
2009-11-08Harmonise UI message "No such user."Siebrand Mazeland
2009-11-06Better workaround for PHP returning empty $_POST and $_FILES whenZach Copley
POST length > post_max_size in php.ini. I also added this check to avatar upload, which was failing with huge files.
2009-11-04Implement update avatar via API (/api/account/update_profile_image.format)Zach Copley
2009-11-03Fix reference to sources class variableZach Copley
2009-10-28Trap ClientExceptions from media upload process and hand them off to API ↵Zach Copley
error handler
2009-10-28Rearanged a couple things & removed debugging statementsZach Copley
2009-10-27Implement media upload in the APIZach Copley
2009-10-12Added in credits.Zach Copley
2009-10-09CamelCase all function names in the API codeZach Copley
2009-10-09Remove more redundant $formatsZach Copley
2009-10-09Move all basic auth output and processing to base classesZach Copley
2009-10-01Renamed and moved stuff around to better match Twitter's API organizationZach Copley