Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-06-10 | Move create/destroy actions for api/v1/statuses to namespace (#3678) | Matt Jankowski | |
Each of mute, favourite, reblog has been updated to: - Have a separate controller with just a create and destroy action - Preserve historical route names to not break the API - Mild refactoring to break up long methods | |||
2017-06-09 | Move reblogged_by and favourited_by actions out of api/v1/statuses and into ↵ | Matt Jankowski | |
unique controllers (#3646) * Add specs for api statuses routes * Update favourited_by and reblogged_by api routes * Move methods into new controllers * Use load_accounts methods to simplify index actions * Clean up load_accounts methods * Clean up link header generation * Check for link headers in specs * Remove unused actions from api/v1/statuses controller * Remove specs for moved actions | |||
2017-06-08 | Add explit admin actions to (re)subscribe/unsubscribe remote accounts (#3640) | Eugen Rochko | |
* Add explit admin actions to (re)subscribe/unsubscribe remote accounts and re-download avatar/header * Improve how admin NSFW toggle looks | |||
2017-06-08 | Improve RuboCop rules (compatibility to Code Climate) (#3636) | Yamagishi Kazutoshi | |
https://github.com/codeclimate/codeclimate-rubocop/blob/08f8de84ebfb39caa96391e23816877278f6441c/Gemfile.lock#L38 Code Climate is using RuboCop v0.46.0. Change several rules to maintain compatibility. | |||
2017-06-07 | Clean up for api/base controller (#3629) | Matt Jankowski | |
* Move ApiController to Api/BaseController * API controllers inherit from Api::BaseController * Add coverage for various error cases in api/base controller | |||
2017-06-07 | Coverage improvement and concern extraction for rate limit headers in API ↵ | Matt Jankowski | |
controller (#3625) * Coverage for rate limit headers * Move rate limit headers methods to concern * Move throttle check to condition on before_action * Move match_data variable into method * Move utc timestamp to separate method * Move header setting into smaller methods * specs cleanup | |||
2017-06-06 | Fix #3063 - Add dynamic app manifest (#3563) | Eugen Rochko | |
* Fix #3063 - Add dynamic app manifest * Added short_name * Add background_color | |||
2017-06-05 | Redirect to streaming_api_base_url (#3579) | Daigo 3 Dango | |
* Redirect to streaming_api_base_url When Rails receives a request to streaming API, it most likely means that there is another host which is configured to respond to it. This is to redirect clients to that host if `STREAMING_API_BASE_URL` is set as another host. * Use the new Ruby 1.9 hash syntax | |||
2017-06-04 | Fix limit_param in favourites_controller.rb (#3553) | Naoki Kosaka | |
2017-06-04 | change sidekiq queueing to bulk push (#3536) | takayamaki | |
2017-06-02 | Ensure well_known controllers use WEB_DOMAIN by including RoutingHelper (#2388) | ThibG | |
This fixes #2375. | |||
2017-06-01 | Spec response for forgery (#3248) | Akihiko Odaki (@fn_aki@pawoo.net) | |
Remove protect_from_forgery in ApiController, which is disabled by the following skip_before_action, as well. | |||
2017-05-31 | Spec coverage and refactor for the api/v1/accounts controllers (#3451) | Matt Jankowski | |
2017-05-31 | Move admin/pubsubhubbub controller to admin/subscriptions (#3442) | Matt Jankowski | |
2017-05-31 | Add Instance class to list admin records (#3443) | Matt Jankowski | |
2017-05-31 | Improve spec coverage and clean up api/v1/blocks controller (#3464) | Matt Jankowski | |
2017-05-31 | Improve spec coverage and clean up api/v1/follow_requests controller (#3465) | Matt Jankowski | |
2017-05-31 | Improve spec coverage and clean up api/v1/domain_blocks controller (#3466) | Matt Jankowski | |
2017-05-31 | Refactor api/v1/notifications controller (#3470) | Matt Jankowski | |
2017-05-31 | Improve spec coverage and clean up api/v1/favourites controller (#3472) | Matt Jankowski | |
2017-05-31 | Improve spec coverage and clean up api/v1/mutes controller (#3481) | Matt Jankowski | |
2017-05-31 | Refactor and spec coverage for api/v1/timelines actions (#3482) | Matt Jankowski | |
2017-05-30 | Refactor api/v1/apps controller (#3471) | Matt Jankowski | |
2017-05-30 | Refactor api/v1/reports controller (#3469) | Matt Jankowski | |
2017-05-30 | Refactor api/v1/search controller (#3468) | Matt Jankowski | |
2017-05-30 | Improve spec coverage and clean up api/v1/media controller (#3467) | Matt Jankowski | |
2017-05-31 | Clean up api/subscriptions controller (#3448) | Matt Jankowski | |
2017-05-30 | Add status destroy authorization to policy (#3453) | Jack Jennings | |
* Add status destroy authorization to policy * Create explicit unreblog status authorization | |||
2017-05-30 | Improve api oembed controller (#3450) | Matt Jankowski | |
* Add StreamEntryFinder class to parse URLs * Use StreamEntryFinder and clean up api/oembed controller | |||
2017-05-30 | Clean up api/salmon controller (#3449) | Matt Jankowski | |
2017-05-30 | Remove exports/base controller in favor of shared concern (#3444) | Matt Jankowski | |
2017-05-29 | Extract authorization policy for viewing statuses (#3150) | Jack Jennings | |
2017-05-29 | Remove methods from ObfuscateFilename and spec (#3347) | Akihiko Odaki | |
* Remove methods from ObfuscateFilename * Spec ObfuscateFilename | |||
2017-05-29 | Add preference setting for delete toot modal (#3368) | Atsushi Yamamoto | |
* Set delete_modal preference to true by default * Does not show confirmation modal if delete_modal is false * Add ja translation for preference setting page | |||
2017-05-27 | Fix empty flash message on the settings page (#3345) | unarist | |
2017-05-26 | Remove redundant call of recent scope in AccountsController (#3330) | Akihiko Odaki | |
recent is included in paginate_by_max_id. | |||
2017-05-26 | Go to root after login in single user mode (#3289) | Akinori MUSHA | |
In single user mode, visitors are redirected to the single user's profile page. So, if you are the owner without a session, you start from that page, click the login button and authenticate yourself expecting you'll soon get started with the home page, but in reality you'll get redirected back to where you started from -- your own profile page. This fixes the behavior by redirecting you home after login if you have started from your own profile page. | |||
2017-05-25 | More use of next link header on account (media) timelines (#3311) | unarist | |
This will reduce requests on who have only few statuses. - Use next link header to detect more items from first request - Omit next link header if result items are fewer than requested count (It had omit it only if result was empty before) | |||
2017-05-24 | Show error message to suspended user (#3281) | Yamagishi Kazutoshi | |
2017-05-23 | Fix following/followers API to return correct link headers (#3268) | unarist | |
Link headers in following/followers API should include follow_id as max_id/since_id. However, these API use current_user's account_id instead of follow_id from #3167. This causes irrelevant result on loading more users. | |||
2017-05-23 | Fix Devise destroy method being available to delete user record (#3266) | Eugen Rochko | |
(You may think that we need account deletions, but this way would've just orphaned the db records) | |||
2017-05-23 | Toggle sensitive from admin page (#3261) | alpaca-tc | |
2017-05-23 | Refactor of API timeline actions (#3263) | Matt Jankowski | |
- Increase coverage to exercise all parts of each action - Move into namespace to share common code - Misc refactor of each action for smaller methods, simpler code | |||
2017-05-23 | Cover StreamEntriesController more and remove redundant instructions (#3257) | Akihiko Odaki | |
* Cover StreamEntriesController more * Remove redundant instructions in StreamEntriesController | |||
2017-05-23 | Introduce recent to Follow (#3247) | Akihiko Odaki | |
Introduce recent to Follow, as Account and other models have. This change also adds specs for the scope and the dependents. | |||
2017-05-23 | Cover AccountsController more in spec (#3229) | Akihiko Odaki | |
* Introduce recent scope to Status and StreamEntry Introduce recent scope to Status and StreamEntry as Account has. * Cover AccountsController more in AccountsController | |||
2017-05-22 | Coverage for api/web/settings controller (#3238) | Matt Jankowski | |
2017-05-22 | Fix locale bug when change it on preferences (#3223) (#3232) | Tomonori Murakami | |
2017-05-22 | Allow alternate domains for mastodon handlers (#3187) | Immae | |
2017-05-22 | Change "Account.any?" to "Account.exists?" (#3217) | Yamagishi Kazutoshi | |