Age | Commit message (Collapse) | Author | |
---|---|---|---|
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 | Use "match_array" only for order independent assertions (#3626) | unarist | |
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 500 errors on searching invalid URLs (#3613) | unarist | |
2017-06-06 | Fix tag search order and not to use tsvector (#3611) | unarist | |
* Sort results by the name * Switch search method to simple `LIKE` matching instead of tsvector/tsquery Previously we used scores from ts_rank_cd() to sort results, but it didn't work because the function returns same score for all results. It's not for calculate similarity of single words. Sometimes this bug even push out exact matching tag from results. Additionally, PostgreSQL supports prefix searching with standard btree index. Using it offers simpler code, but also less index size and some speed. | |||
2017-06-06 | Add quotes ESLint rules (#3602) | Yamagishi Kazutoshi | |
* Add quotes ESLint rule * Add jsx-quotes ESlint rule * Sort ESLint rules | |||
2017-06-05 | Introduce StatusThreadingConcern (#3490) | Matt Jankowski | |
* Add a StatusFilter class to identify visibility of statuses by accounts * Extract StatusThreadingConcern from Status * Clarify purpose of checking for nil account | |||
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-05 | Fix randomly fail (regression from #3560) (#3580) | Yamagishi Kazutoshi | |
2017-06-05 | Skip image length check (regression from #3528) (#3581) | Yamagishi Kazutoshi | |
2017-06-05 | Don't follow account if it's already followed (#3575) | René Klačan | |
Closes https://github.com/tootsuite/mastodon/issues/3102 | |||
2017-06-05 | Added support for configurable reserved usernames (fix of #1382) (#3566) | Eugen Rochko | |
* Added support for configurable reserved usernames * Added reserved usernames from mastodon issue 1355 * Fix reserved usernames | |||
2017-06-04 | Cover WebfingerResource more (#3560) | Akihiko Odaki (@fn_aki@pawoo.net) | |
2017-06-04 | Spec ScopedSettings (#3559) | Akihiko Odaki (@fn_aki@pawoo.net) | |
2017-06-04 | Remove some code in TagManager and spec (#3547) | Akihiko Odaki (@fn_aki@pawoo.net) | |
* Do not fall back to StreamEntry if object_type is unavailable in TagManager Since 6d6a429af8fe4bd92ed497f401676353fdc603e0, when Status, the only model with stream_entry, and StreamEntry got its own logic in uri_for and url_for, the purpose of the fallbacks to activity_type of StreamEntry became unclear. This commit removes the fallbacks. When adding another model with stream_entry in future, consider to update uri_for and url_for. * Cover TagManager more | |||
2017-06-04 | Spec InlineRablScope (#3542) | Akihiko Odaki (@fn_aki@pawoo.net) | |
2017-06-04 | Spec HashObject (#3544) | Akihiko Odaki (@fn_aki@pawoo.net) | |
2017-06-04 | A minor change for ProviderDiscovery and spec (#3543) | Akihiko Odaki (@fn_aki@pawoo.net) | |
* Do not default the format in ProviderDiscovery The format should be determined when discovering, as it is in the current implementation, and it is a flaw if it is not determined. * Spec ProviderDiscovery | |||
2017-06-04 | Remove some arguments of Formatter.instance.format and spec (#3541) | Akihiko Odaki (@fn_aki@pawoo.net) | |
* Remove some arguments of Formatter.instance.format * Improve spec for Formatter | |||
2017-06-04 | Spec Extractor (#3540) | Akihiko Odaki (@fn_aki@pawoo.net) | |
2017-06-04 | Spec action verification of StreamEntryFinder (#3549) | Akihiko Odaki (@fn_aki@pawoo.net) | |
2017-06-03 | Remove redundant code in AtomSerializer and spec (#3528) | Akihiko Odaki (@fn_aki@pawoo.net) | |
* Remove redundant status.reply? in AtomSerializer#object * Cover AtomSerializer more | |||
2017-06-03 | Fix spec for #2388 (#3526) | Yamagishi Kazutoshi | |
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-06-01 | Improve tests for JavaScript (#3496) | Yamagishi Kazutoshi | |
- Upgrade dependencies - chai (3.5.0 -> 4.0.1) - chai-enzyme (0.6.1 -> 0.7.1) - sinon (2.2.0 -> 2.3.2) - Change extensions from .jsx to .js - Don't assign `React` to `global` - Check code format using ESLint | |||
2017-06-01 | Add scenarios for log in (#3497) | Yamagishi Kazutoshi | |
2017-06-01 | Remove usernames and hashtags from language detection (#3503) | Matt Jankowski | |
* Add failing specs for hashtag and username extraction in language detector * Remove usernames and hashtags from text before language detection * Handle multiple instances of special case, and reduce whitespace | |||
2017-06-01 | Handle nil and blank cases in Account finders (#3500) | Matt Jankowski | |
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 | 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 | Improve spec coverage and clean up api/v1/favourites controller (#3472) | Matt Jankowski | |
2017-05-31 | Expand spec coverage and refactor the `Account.find_` methods (#3485) | Matt Jankowski | |
* Move specs for account finder methods to concern spec * Move account finder methods to concern * Improve spec wording * Use more explicit comparison to ensure correct return value * Add coverage for .find_local! and .find_remote! * Add some methods to the finder * Use arel on matching_username method * Avoid ternary in matching domain method * Simplify finder methods * Use an AccountFinder class to simplify lookup | |||
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-31 | Hold value of I18n.locale with ApplicationHelperSpec (#3474) | Yamagishi Kazutoshi | |
2017-05-31 | Keep ENV['LOCAL_HTTPS'] with ApplicationControllerSpec (fix random fail) (#3479) | Yamagishi Kazutoshi | |
* Keep ENV['LOCAL_HTTPS'] with ApplicationControllerSpec (fix random fail) * use climate_control | |||
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 | Fix incorrect visibility setter in StatusPolicySpec (#3456) | Jack Jennings | |
2017-05-30 | Remove exports/base controller in favor of shared concern (#3444) | Matt Jankowski | |
2017-05-30 | Refactor User and spec (#3431) | Akihiko Odaki | |
* Protect send_devise_notification of User * Improve spec for User | |||
2017-05-30 | Move status reblog authorization into policy (#3425) | Jack Jennings | |
2017-05-30 | Use around hook to restore context in InstancePresenter spec (#3430) | Akihiko Odaki | |
2017-05-30 | Use around hook to restore context in InstanceHelper spec (#3429) | Akihiko Odaki | |