- Aug 28, 2020
-
-
Akihiko Odaki authored
* Replace incorrect use of distinct with group Some uses of ActiveRecord::QueryMethods#distinct pass field names but they are incorrect for the current version of Rails. ActiveRecord::QueryMethods#group provides the expected behavior and benefits performance. See commit 6da24aad4cafdef8d8a2c92bac2002a5fc2fe9c8. * Introduce ApplicationController#cache_collection_paginated_by_id ApplicationController#cache_collection_paginated_by_id fuses ApplicationController#cache_collection and Paginable.paginate_by_id. An advantage of this method is that it prevents from modifying scope which Paginable.paginate_by_id may provide. ApplicationController#cache_collection always return an array and there is no possibility of the scope modification. It is also clear for a programmer, considering the implication of "cache". This method can also emit more efficient queries by using Cacheable.cache_ids before calling Paginable.paginate_by_id.
-
Akihiko Odaki authored
Some uses of ActiveRecord::QueryMethods#distinct pass field names but they are incorrect for the current version of Rails. ActiveRecord::QueryMethods#group provides the expected behavior and benefits performance. See commit 6da24aad4cafdef8d8a2c92bac2002a5fc2fe9c8.
-
- Mar 06, 2020
-
-
Eugen Rochko authored
-
- Sep 27, 2019
-
-
abcang authored
-
- Aug 30, 2019
-
-
Eugen Rochko authored
-
- Aug 08, 2019
-
-
Eugen Rochko authored
Fix #10227
-
- Apr 07, 2019
-
-
Eugen Rochko authored
* Revert "Fix filtering of favourited_by, reblogged_by, followers and following (#10447)" This reverts commit 12054406. * Revert "Hide blocking accounts from blocked users (#10442)" This reverts commit 62bafa20. * Improve blocked view of profiles - Change "You are blocked" to "Profile unavailable" - Hide following/followers in API when blocked - Disable follow button and show "Profile unavailable" on public profile as well
-
- Apr 01, 2019
-
-
ThibG authored
* Revert "Add indication that you have been blocked in web UI (#10420)" This reverts commit bd02ec6d. * Revert "Add `blocked_by` relationship to the REST API (#10373)" This reverts commit 9745de88. * Hide blocking accounts from search results * Filter blocking accouts from account followers * Filter blocking accouts from account's following accounts * Filter blocking accounts from “reblogged by” and “favourited by” lists * Remove blocking account from URL search * Return 410 on trying to fetch user data from a user who blocked us * Return 410 in /api/v1/account/statuses for suspended or blocking accounts * Fix status filtering when performing URL search * Restore some React improvements Restore some cleanup from bd02ec6d * Refactor by adding `without_blocking` scope
-
- Mar 13, 2019
-
-
Eugen Rochko authored
-
- Feb 26, 2019
-
-
abcang authored
-
- Feb 04, 2019
-
-
Eugen Rochko authored
* Add hashtag filter to profiles GET /@:username/tagged/:hashtag GET /api/v1/accounts/:id/statuses?tagged=:hashtag * Display featured hashtags on public profile * Use separate model for featured tags * Update featured hashtag counters on-write * Limit featured tags to 10
-
- Dec 27, 2018
-
-
Eugen Rochko authored
Fix #9606
-
- Dec 20, 2018
-
-
Eugen Rochko authored
Fix #7087 The same data is available over the ActivityPub outbox, RSS, and Atom, so there is little benefit to keeping it limited in this method.
-
- Sep 28, 2018
-
-
Eugen Rochko authored
* Allow min_id pagination in Feed#get * Add min_id pagination to home and list timeline APIs * Add min_id pagination to account statuses, public and tag APIs * Remove unused stub in reports API * Use min_id pagination in notifications, favourites, and fix order * Fix HomeFeed#from_database not using paginate_by_id
-
- Jul 05, 2018
-
-
Eugen Rochko authored
* Add more granular OAuth scopes * Add human-readable descriptions of the new scopes * Ensure new scopes look good on the app UI * Add tests * Group scopes in screen and color-code dangerous ones * Fix wrong extra scope
-
- May 16, 2018
-
-
Akihiko Odaki authored
permitted_for scope is slow when combined with pinned status scope. Fortunately permitted_for scope can safely be removed because a pinned status is always public.
-
- Apr 02, 2018
-
-
Eugen Rochko authored
-
- Mar 10, 2018
-
-
abcang authored
-
- Mar 01, 2018
-
-
Eugen Rochko authored
Use Rails smart boolean cast to account for values such as "f", "0", "false", etc. Previously, if a param was present in the request, it would count as true.
-
- Aug 24, 2017
-
-
Eugen Rochko authored
* Pinned statuses * yarn manage:translations
-
- Jul 07, 2017
-
-
Eugen Rochko authored
-
- Jun 07, 2017
-
-
Matt Jankowski authored
* Move ApiController to Api/BaseController * API controllers inherit from Api::BaseController * Add coverage for various error cases in api/base controller
-
- May 31, 2017
-
-
Matt Jankowski authored
-